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

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

Issue 2415363002: Unpoison CrossThreadPersistents (Closed)
Patch Set: fix Created 4 years, 2 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: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index ce2ba90164c3810e91c762226146f62924a43ce1..408f1739f12cba4f161e838a798a3cf759656266 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1139,10 +1139,12 @@ void ThreadState::poisonAllHeaps() {
// Poisoning all unmarked objects in the other arenas.
for (int i = 1; i < BlinkGC::NumberOfArenas; i++)
m_arenas[i]->poisonArena();
+ ProcessHeap::crossThreadPersistentRegion().unpoisonCrossThreadPersistents();
haraken 2016/10/17 07:32:40 Add a comment about why we do this.
keishi 2016/10/17 07:43:00 Done.
}
void ThreadState::poisonEagerArena() {
m_arenas[BlinkGC::EagerSweepArenaIndex]->poisonArena();
+ ProcessHeap::crossThreadPersistentRegion().unpoisonCrossThreadPersistents();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698