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

Unified Diff: third_party/WebKit/Source/platform/heap/Persistent.h

Issue 2694173002: Remove thread-local weak processing (Closed)
Patch Set: temp Created 3 years, 10 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/Persistent.h
diff --git a/third_party/WebKit/Source/platform/heap/Persistent.h b/third_party/WebKit/Source/platform/heap/Persistent.h
index 26ef9d1e43b55f3d96db3abe573ab417591ca261..2527ce0ec1d0edd925bc877c4268a825c342496b 100644
--- a/third_party/WebKit/Source/platform/heap/Persistent.h
+++ b/third_party/WebKit/Source/platform/heap/Persistent.h
@@ -196,11 +196,7 @@ class PersistentBase {
static_assert(IsGarbageCollectedType<T>::value,
"T needs to be a garbage collected object");
if (weaknessConfiguration == WeakPersistentConfiguration) {
- if (crossThreadnessConfiguration == CrossThreadPersistentConfiguration)
- visitor->registerWeakCellWithCallback(reinterpret_cast<void**>(this),
- handleWeakPersistent);
- else
- visitor->registerWeakMembers(this, m_raw, handleWeakPersistent);
+ visitor->registerWeakCallback(this, handleWeakPersistent);
} else {
visitor->mark(m_raw);
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapAllocator.h ('k') | third_party/WebKit/Source/platform/heap/ThreadState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698