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

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

Issue 1909813002: Enable per thread heap for database thread (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..13d8c977a030037ac5584c020e93915c4f671d32 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.h
+++ b/third_party/WebKit/Source/platform/heap/Heap.h
@@ -202,6 +202,8 @@ public:
// always 'alive'.
if (!object)
return true;
+ // TODO(keishi): some tests create CrossThreadPersistent on non attached threads.
haraken 2016/05/24 16:15:28 Do you know what tests are doing that? But concep
+ DCHECK(!ThreadState::current() || &ThreadState::current()->heap() == &pageFromObject(object)->arena()->getThreadState()->heap());
return ObjectAliveTrait<T>::isHeapObjectAlive(object);
}
template<typename T>

Powered by Google App Engine
This is Rietveld 408576698