Skip to content

Commit e5d3c38

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 7877902 commit e5d3c38

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)