[bmalloc] Bmalloc DebugHeap should have dump and scavenge features
[WebKit-https.git] / Source / bmalloc / bmalloc / bmalloc.cpp
index 1edf29e..cccb594 100644 (file)
@@ -92,7 +92,9 @@ void scavenge()
 {
     scavengeThisThread();
 
-    if (!DebugHeap::tryGet())
+    if (DebugHeap* debugHeap = DebugHeap::tryGet())
+        debugHeap->scavenge();
+    else
         PerProcess<Scavenger>::get()->scavenge();
 }