BlinkMemoryMgt: Annotate some classes of peerconnection 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/peerconnection 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 IceTransportProxy, QuicTransportProxy and QuicPeerForTest classes, they make sense to use USING_FAST_MALLOC because they have been used as member variables with smart pointers. In ByteBufferQueue and ByteBufferQueue classes case, they make sense to use DISALLOW_NEW because they have been used as member variables with a reference type. Lastly, the rest of the other classes make sense to use STACK_ALLOCATED because they are used by function inside. Bug: 919389 Change-Id: Ia428d8ec65bf5406ed1886fae3d916d7ad497b89 Reviewed-on: https://chromium-review.googlesource.com/c/1487755Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#635408}
Showing
Please register or sign in to comment