Skip to content

Commit 7999b6a

Browse files
authored
Merge pull request #1310 from asurdej-comcast/mhb
Enable MemoryPressureHandler for MALLOC_HEAP_BREAKDOWN
2 parents 6f314f3 + e5d3c38 commit 7999b6a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/WTF/wtf/MemoryPressureHandler.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ MemoryPressureHandler::MemoryPressureHandler()
145145

146146
void MemoryPressureHandler::setShouldUsePeriodicMemoryMonitor(bool use)
147147
{
148+
#if !ENABLE(MALLOC_HEAP_BREAKDOWN)
148149
if (!isFastMallocEnabled()) {
149150
// If we're running with FastMalloc disabled, some kind of testing or debugging is probably happening.
150151
// Let's be nice and not enable the memory kill mechanism.
151152
return;
152153
}
154+
#endif
153155

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

0 commit comments

Comments
 (0)