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

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

Issue 2007283002: Allow CrossThreadPersistent in collections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/Heap.h
diff --git a/third_party/WebKit/Source/platform/heap/Heap.h b/third_party/WebKit/Source/platform/heap/Heap.h
index 40482db58d209521ff8e441509afa93a356ac2cb..2b51421d4f51f8eb99f1aef788946c8cbed91364 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.h
+++ b/third_party/WebKit/Source/platform/heap/Heap.h
@@ -202,6 +202,9 @@ public:
// always 'alive'.
if (!object)
return true;
+ // TODO(keishi): some tests create CrossThreadPersistent on non attached threads.
+ if (!ThreadState::current())
sof 2016/05/26 12:09:41 What's going wrong without this bail out? I though
keishi 2016/05/26 12:32:04 Sorry this is part of https://codereview.chromium.
+ return true;
return ObjectAliveTrait<T>::isHeapObjectAlive(object);
}
template<typename T>
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698