BlinkMemoryMgt: Annotate Blink's platform/heap with the macros of Allocator
As a step to annotate the macros of Allocator for the Onion Soup, this CL annotates some classes of //third_party/blink/renderer/platform/heap with the macros of Allocator. After some analyzes, it was concluded that for the case of GlobalPool, View, PrefinalizerRegistration, BlinkGCObserver, ThingWithDestructor, and AtomicEntryFlag classes, they make sense to use DISALLOW_NEW because they have been used as a member variable with a reference type. In ThreadHeap, HeapCompact::MovableObjectFixups, ThreadHeapStatsCollector, KeyWithCopyingMoveConstructor, ThreadMarker, OffHeapInt, Visitor classes, they make sense to use USING_FAST_MALLOC because they're used with new or smart pointers. Lastly, the rest of classes this CL annotates make sense to use STACK_ALLOCATED or STATIC_ONLY. Bug: 919389 Change-Id: Ib3e5c90650f35370cbb2041b46042b8aa0db37c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1502254Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#637912}
Showing
Please register or sign in to comment