BlinkMemoryMgt: Annotate some classes of Blink's presentation module with USING_FAST_MALLOC
The OnionSoup effort has a goal of allocating all garbage-collectible Blink objects with Oilpan or PartitionAlloc. However, some classes of //blink/renderer/modules/presentation have 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 PresentationAvailabilityCallbacks, PresentationAvailabilityState and PresentationConnectionCallbacks classes, they make sense to use USING_FAST_MALLOC because they have been used as member variables with smart pointers. Bug: 919389 Change-Id: Ib662c4015d4a593ad4554e880192eb2e0714ef02 Reviewed-on: https://chromium-review.googlesource.com/c/1487757Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#635397}
Showing
Please register or sign in to comment