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

Unified Diff: Source/core/css/CSSValue.h

Issue 1201983003: Oilpan: eagerly finalize CSSCrossfadeValue. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add comment Created 5 years, 6 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 | « Source/core/css/CSSCrossfadeValue.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValue.h
diff --git a/Source/core/css/CSSValue.h b/Source/core/css/CSSValue.h
index 1c0f64f7244171c87332c0632fc4e4e7b64a6aee..ff567ea34d81414c14b99c83075307d1b44b0537 100644
--- a/Source/core/css/CSSValue.h
+++ b/Source/core/css/CSSValue.h
@@ -39,12 +39,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<CSSValue>::Affinity>::state();
- return Heap::allocateOnHeapIndex(state, size, CSSValueHeapIndex, GCInfoTrait<CSSValue>::index());
+ return Heap::allocateOnHeapIndex(state, size, isEager ? EagerSweepHeapIndex : CSSValueHeapIndex, GCInfoTrait<CSSValue>::index());
}
#else
// Override RefCounted's deref() to ensure operator delete is called on
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698