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

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

Issue 2625293002: Remove ThreadHeapMode (Closed)
Patch Set: Created 3 years, 11 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.cpp
diff --git a/third_party/WebKit/Source/platform/heap/Heap.cpp b/third_party/WebKit/Source/platform/heap/Heap.cpp
index 046c80f9f47ef72e7bdf9b641fac5b585df8b917..f17639035539f6619f796635bba8aabb0995cd3d 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.cpp
+++ b/third_party/WebKit/Source/platform/heap/Heap.cpp
@@ -256,12 +256,6 @@ void ThreadHeap::detach(ThreadState* thread) {
m_threads.remove(thread);
isLastThread = m_threads.isEmpty();
}
- // The last thread begin detached should be the owning thread, which would
- // be the main thread for the mainThreadHeap and a per thread heap enabled
- // thread otherwise.
- if (isLastThread)
- DCHECK(thread->threadHeapMode() == BlinkGC::PerThreadHeapMode ||
- thread->isMainThread());
if (thread->isMainThread())
DCHECK_EQ(heapStats().allocatedSpace(), 0u);
if (isLastThread)

Powered by Google App Engine
This is Rietveld 408576698