X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/heap/HeapTimer.cpp?ds=inline diff --git a/heap/HeapTimer.cpp b/heap/HeapTimer.cpp index 9660d66..15e5484 100644 --- a/heap/HeapTimer.cpp +++ b/heap/HeapTimer.cpp @@ -26,6 +26,7 @@ #include "config.h" #include "HeapTimer.h" +#include "GCActivityCallback.h" #include "IncrementalSweeper.h" #include "JSObject.h" #include "JSString.h" @@ -62,7 +63,7 @@ HeapTimer::HeapTimer(VM* vm, CFRunLoopRef runLoop) m_context.info = &vm->apiLock(); m_context.retain = retainAPILock; m_context.release = releaseAPILock; - m_timer = adoptCF(CFRunLoopTimerCreate(0, s_decade, s_decade, 0, 0, HeapTimer::timerDidFire, &m_context)); + m_timer = adoptCF(CFRunLoopTimerCreate(kCFAllocatorDefault, s_decade, s_decade, 0, 0, HeapTimer::timerDidFire, &m_context)); CFRunLoopAddTimer(m_runLoop.get(), m_timer.get(), kCFRunLoopCommonModes); }