BlinkMemoryMgt: Annotate storage classes 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/storage 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 StorageAreaMap and StorageController classes, they make sense to use USING_FAST_MALLOC because they have been created by smart pointers. Bug: 919389 Change-Id: Ic440735af3bb0e2e87fce36b41564ade69a6ebfb Reviewed-on: https://chromium-review.googlesource.com/c/1488398Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#635439}
Showing
Please register or sign in to comment