BlinkMemoryMgt: Annotate DatabaseVersionCache and SQLiteFileSystem classes...
BlinkMemoryMgt: Annotate DatabaseVersionCache and SQLiteFileSystem classes with the macros of Allocator The OnionSoup effort has a goal of allocating all garbage-collectible Blink objects with Oilpan or PartitionAlloc. However, some classes of //blink/renderer/modules/webdatagbase 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 SQLiteFileSystem class, it makes sense to use STATIC_ONLY because it only has static functions. To annotate SQLiteFileSystem class with STATIC_ONLY, this CL removes the default constructor. In DatabaseVersionCache class case, it makes sense to use USING_FAST_MALLOC because it's used by DEFINE_THREAD_SAFE_STATIC_LOCAL macro. Additionally, this CL annotates DOMWebSocketTestScope with STACK_ALLOCATED. Bug: 919389 Change-Id: Iaad117a1edf152bee6dbe43b2979aaee5ca4ce0d Reviewed-on: https://chromium-review.googlesource.com/c/1491070Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#635940}
Showing
Please register or sign in to comment