• Gyuyoung Kim's avatar
    BlinkMemoryMgt: Annotate webaudio classes with USING_FAST_MALLOC · 2b46b38f
    Gyuyoung Kim authored
    The OnionSoup effort has a goal of allocating all garbage-collectible Blink objects
    with Oilpan or PartitionAlloc. However, some classes of
    //blink/renderer/modules/webaudio 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 ProcessorCreationParams and
    SharedAudioBuffer classes, they make sense to use USING_FAST_MALLOC because they have
    been used as member variables with smart pointers.
    
    Bug: 919389
    Change-Id: I415dc3360abcadff5d2b3ce25035d09d674c2720
    Reviewed-on: https://chromium-review.googlesource.com/c/1488399Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#635491}
    2b46b38f
audio_buffer.cc 13.6 KB