Skip to content

Commit ac6b407

Browse files
Enable MemoryPressureHandler for MALLOC_HEAP_BREAKDOWN
Enabling MALLOC_HEAP_BREAKDOWN currently disables MemoryPressureHandler. We would like to keep both enabled to be able to track memory related issues.
1 parent 903aacc commit ac6b407

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/WTF/wtf/MemoryPressureHandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,13 @@ void MemoryPressureHandler::setMemoryFootprintPollIntervalForTesting(Seconds pol
159159

160160
void MemoryPressureHandler::setShouldUsePeriodicMemoryMonitor(bool use)
161161
{
162+
#if !ENABLE(MALLOC_HEAP_BREAKDOWN)
162163
if (!isFastMallocEnabled()) {
163164
// If we're running with FastMalloc disabled, some kind of testing or debugging is probably happening.
164165
// Let's be nice and not enable the memory kill mechanism.
165166
return;
166167
}
168+
#endif
167169

168170
if (use) {
169171
m_measurementTimer = makeUnique<RunLoop::Timer>(RunLoop::main(), this, &MemoryPressureHandler::measurementTimerFired);

0 commit comments

Comments
 (0)