summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/API/APIShims.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/API/APIShims.h')
-rw-r--r--JavaScriptCore/API/APIShims.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/JavaScriptCore/API/APIShims.h b/JavaScriptCore/API/APIShims.h
index 892068d..0b49d70 100644
--- a/JavaScriptCore/API/APIShims.h
+++ b/JavaScriptCore/API/APIShims.h
@@ -27,6 +27,7 @@
#define APIShims_h
#include "CallFrame.h"
+#include "GCActivityCallback.h"
#include "JSLock.h"
#include <wtf/WTFThreadData.h>
@@ -40,6 +41,7 @@ protected:
{
if (registerThread)
globalData->heap.registerThread();
+ m_globalData->heap.activityCallback()->synchronize();
m_globalData->timeoutChecker.start();
}
@@ -85,6 +87,7 @@ public:
~APICallbackShim()
{
+ m_globalData->heap.activityCallback()->synchronize();
wtfThreadData().setCurrentIdentifierTable(m_globalData->identifierTable);
}