BlinkMemoryMgt: Annotate the classes of renderer/core/timing with the macros of Allocator
The OnionSoup effort has a goal of allocating all garbage-collectable Blink objects with Oilpan or PartitionAlloc. However, the some classes of //blink/renderer/core/timing has not yet been allocated with them so far. So their uses of non-garbage-collected objects should be restricted to cases where the garbage collector can discover their references. The macros of Allocator will be useful for the non-garbage-collected objects to avoid unintended allocations. After some analyzes, it was concluded that for the case of the EventTiming, SubTaskAttribution, and TimeClamper classes, they make sense to use USING_FAST_MALLOC because they have been used with smart pointers. Bug: 919389 Change-Id: Ib8cddb4c1e4db37b6542bfabae7a13cc4a6d5749 Reviewed-on: https://chromium-review.googlesource.com/c/1482250Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#634603}
Showing
Please register or sign in to comment