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

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

Issue 21666003: Enhancements to PartitionAlloc to support threading and arbitrary allocation sizes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/rendering/RenderObject.cpp » ('j') | Source/wtf/PartitionAlloc.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 0a92b51f3076b5ef6ab395c626b5f6c87aa065fb..f088d14cce2fc009591444ec5b1f4afeb1c099e5 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -98,11 +98,13 @@ using namespace HTMLNames;
void* Node::operator new(size_t size)
{
+ ASSERT(isMainThread());
return partitionAlloc(Partitions::getObjectModelPartition(), size);
}
void Node::operator delete(void* ptr)
{
+ ASSERT(isMainThread());
partitionFree(ptr);
}
« no previous file with comments | « no previous file | Source/core/rendering/RenderObject.cpp » ('j') | Source/wtf/PartitionAlloc.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698