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

Unified Diff: Source/platform/heap/HeapAllocator.h

Issue 1166623002: Oilpan: Remove a visitor parameter from isHeapObjectAlive (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/platform/heap/HeapAllocator.h
diff --git a/Source/platform/heap/HeapAllocator.h b/Source/platform/heap/HeapAllocator.h
index 45ce9f91ed55d922088972cffbd6a7f5f88b8999..98cecec54142f92cf3a7d37180c7d17f82cfed1e 100644
--- a/Source/platform/heap/HeapAllocator.h
+++ b/Source/platform/heap/HeapAllocator.h
@@ -119,6 +119,12 @@ public:
return ThreadState::current()->isAllocationAllowed();
}
+ template<typename T>
+ static bool isHeapObjectAlive(T* object)
+ {
+ return Heap::isHeapObjectAlive(object);
+ }
+
template<typename VisitorDispatcher>
static void markNoTracing(VisitorDispatcher visitor, const void* t) { visitor->markNoTracing(t); }

Powered by Google App Engine
This is Rietveld 408576698