BlinkMemoryMgt: Annonate some classes of ServiceWorker 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/modules/service_worker 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 RawScriptData class, it makes sense to use USING_FAST_MALLOC because it has been used with smart pointers. In Receiver class case, it makes sense to use DISALLOW_NEW because it has been used as a member variable with a reference type. Additionally this CL annonates HTMLMediaElementRemotePlayback with STAIC_ONLY. Bug: 919389 Change-Id: I084e8207dfb51170bba4a5255e0ecc3ef262d599 Reviewed-on: https://chromium-review.googlesource.com/c/1487759Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#635407}
Showing
Please register or sign in to comment