Index: Source/bindings/core/v8/V8PerIsolateData.cpp |
diff --git a/Source/bindings/core/v8/V8PerIsolateData.cpp b/Source/bindings/core/v8/V8PerIsolateData.cpp |
index b9241f0692fd4ba9c89acd5714f4cd0fdcd2deef..9c9a795e0f768fb976cf24c7a8115df66178fa7b 100644 |
--- a/Source/bindings/core/v8/V8PerIsolateData.cpp |
+++ b/Source/bindings/core/v8/V8PerIsolateData.cpp |
@@ -118,7 +118,16 @@ v8::Persistent<v8::Value>& V8PerIsolateData::ensureLiveRoot() |
return m_liveRoot.getUnsafe(); |
} |
-void V8PerIsolateData::dispose(v8::Isolate* isolate) |
+void V8PerIsolateData::willBeDestroyed(v8::Isolate* isolate) |
+{ |
+ V8PerIsolateData* data = from(isolate); |
+ |
+ // Clear any data that may have handles into the heap, |
+ // prior to thread detach. |
haraken
2014/09/11 01:18:53
thread detach => calling ThreadState::detach
jsbell
2014/09/11 22:14:51
Done.
|
+ data->m_idbPendingTransactionMonitor.clear(); |
+} |
+ |
+void V8PerIsolateData::destroy(v8::Isolate* isolate) |
{ |
#if ENABLE(ASSERT) |
if (blink::Platform::current()->currentThread()) |