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

heap: Remove dead MarkAsConstructed method

Bug: 1056170
Change-Id: Ic1edc36432453f728457edd648838ed4e98c0a31
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2550205
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Auto-Submit: Michael Lippautz <mlippautz@chromium.org>
Reviewed-by: default avatarOmer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#829303}
parent 0939af9f
...@@ -240,29 +240,11 @@ class PLATFORM_EXPORT HeapAllocator { ...@@ -240,29 +240,11 @@ class PLATFORM_EXPORT HeapAllocator {
} }
private: private:
static Address MarkAsConstructed(Address address) {
HeapObjectHeader::FromPayload(reinterpret_cast<void*>(address))
->MarkFullyConstructed<HeapObjectHeader::AccessMode::kAtomic>();
return address;
}
static void BackingFree(void*); static void BackingFree(void*);
static bool BackingExpand(void*, size_t); static bool BackingExpand(void*, size_t);
static bool BackingShrink(void*, static bool BackingShrink(void*,
size_t quantized_current_size, size_t quantized_current_size,
size_t quantized_shrunk_size); size_t quantized_shrunk_size);
template <typename T, wtf_size_t u, typename V>
friend class WTF::Vector;
template <typename T, typename U, typename V, typename W>
friend class WTF::HashSet;
template <typename T,
typename U,
typename V,
typename W,
typename X,
typename Y>
friend class WTF::HashMap;
}; };
template <typename KeyArg, template <typename KeyArg,
......
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