Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2286)

Unified Diff: Source/platform/heap/ThreadState.cpp

Issue 1265103003: Invalidate cross-thread persistents on heap termination. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clarify comments + style tweaks Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/heap/ThreadState.cpp
diff --git a/Source/platform/heap/ThreadState.cpp b/Source/platform/heap/ThreadState.cpp
index 079ac1912d0ce202fbbc8a761bbc15343b422211..cca3c4608db55b2c666642eb5baabd9c7c89f011 100644
--- a/Source/platform/heap/ThreadState.cpp
+++ b/Source/platform/heap/ThreadState.cpp
@@ -243,6 +243,8 @@ void ThreadState::cleanup()
// thread local GC.
prepareHeapForTermination();
haraken 2015/08/03 00:45:25 Nit: I'd rename this to prepareForThreadStateTermi
sof 2015/08/03 08:30:04 Done.
+ ThreadState::crossThreadPersistentRegion().prepareForThreadStateTermination(this);
+
// Do thread local GC's as long as the count of thread local Persistents
// changes and is above zero.
int oldCount = -1;
« Source/platform/heap/PersistentNode.cpp ('K') | « Source/platform/heap/PersistentNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698