Chromium Code Reviews| Index: third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| diff --git a/third_party/WebKit/Source/platform/heap/HeapAllocator.h b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| index f52965b22cff122a5d648bfe3bbb2e57b75313e6..134422a3e04e5dbb887003a85baa8170f025c48b 100644 |
| --- a/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| +++ b/third_party/WebKit/Source/platform/heap/HeapAllocator.h |
| @@ -151,6 +151,10 @@ class PLATFORM_EXPORT HeapAllocator { |
| return ThreadState::Current()->IsAllocationAllowed(); |
| } |
| + static bool IsBackingReallocationAllowed() { |
|
kouhei (in TOK)
2017/04/12 06:14:01
Can we make it clear that this is inside prefinali
haraken
2017/04/12 06:44:34
Maybe we can rename this to IsObjectRessurectionFo
keishi
2017/04/12 09:43:53
Done.
|
| + return ThreadState::Current()->IsBackingReallocationAllowed(); |
| + } |
| + |
| template <typename T> |
| static bool IsHeapObjectAlive(T* object) { |
| return ThreadHeap::IsHeapObjectAlive(object); |