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

Unified Diff: Source/core/dom/Node.h

Issue 1157933002: Oilpan: introduce eager finalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Parameterize Heap::poisonHeap() over ObjectsToPoison Created 5 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
« no previous file with comments | « no previous file | Source/core/events/EventTarget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 63b3599828d035b1541d653dbf0829ba1841540f..6d6f3dc507ec4ce9d219c11181de03e8b705b593 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -170,12 +170,12 @@ public:
GC_PLUGIN_IGNORE("crbug.com/443854")
void* operator new(size_t size)
{
- return allocateObject(size);
+ return allocateObject(size, false);
}
- static void* allocateObject(size_t size)
+ static void* allocateObject(size_t size, bool isEager)
{
ThreadState* state = ThreadStateFor<ThreadingTrait<Node>::Affinity>::state();
- return Heap::allocateOnHeapIndex(state, size, NodeHeapIndex, GCInfoTrait<EventTarget>::index());
+ return Heap::allocateOnHeapIndex(state, size, isEager ? EagerSweepHeapIndex : NodeHeapIndex, GCInfoTrait<EventTarget>::index());
}
#else // !ENABLE(OILPAN)
// All Nodes are placed in their own heap partition for security.
« no previous file with comments | « no previous file | Source/core/events/EventTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698