Commit ecaeb6f2 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

heap: Remove unused methods from Allocator abstraction

Bug: chromium:1056170
Change-Id: Ib7b522020be7c198e405c9561376faa898e6a493
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2532579
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826555}
parent 90da2827
...@@ -130,10 +130,6 @@ class PLATFORM_EXPORT HeapAllocator { ...@@ -130,10 +130,6 @@ class PLATFORM_EXPORT HeapAllocator {
return ThreadState::Current()->IsAllocationAllowed(); return ThreadState::Current()->IsAllocationAllowed();
} }
static bool IsSweepForbidden() {
return ThreadState::Current()->SweepForbidden();
}
static bool IsIncrementalMarking() { static bool IsIncrementalMarking() {
return ThreadState::IsAnyIncrementalMarking() && return ThreadState::IsAnyIncrementalMarking() &&
ThreadState::Current()->IsIncrementalMarking(); ThreadState::Current()->IsIncrementalMarking();
......
...@@ -79,12 +79,8 @@ class WTF_EXPORT PartitionAllocator { ...@@ -79,12 +79,8 @@ class WTF_EXPORT PartitionAllocator {
static void TraceBackingStoreIfMarked(const void*) {} static void TraceBackingStoreIfMarked(const void*) {}
template <typename T> template <typename T>
static void BackingWriteBarrier(T**) {} static void BackingWriteBarrier(T**) {}
template <typename, typename T>
static void BackingWriteBarrierForHashTable(T**) {}
static bool IsAllocationAllowed() { return true; } static bool IsAllocationAllowed() { return true; }
static bool IsObjectResurrectionForbidden() { return false; }
static bool IsSweepForbidden() { return false; }
static bool IsIncrementalMarking() { return false; } static bool IsIncrementalMarking() { return false; }
static void EnterGCForbiddenScope() {} static void EnterGCForbiddenScope() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment