Have AudioBufferSourceNode report its buffer's memory for GC purposes, unless its buffer still has a JS wrapper (which already does report this memory).
Created attachment 439623 [details] Patch
Created attachment 439740 [details] Patch
Created attachment 439743 [details] Patch
Comment on attachment 439743 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=439743&action=review > Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp:40 > + visitor.addOpaqueRoot(wrapped().buffer()); I think this needs a comment. Normally we mark things so we can preserve custom JavaScript property values on the wrapper, not so that garbage collection understands memory use. So this is needed for a subtle reason that someone might not understand.
Created attachment 439900 [details] Patch
Committed r283402 (242405@main): <https://commits.webkit.org/242405@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 439900 [details].
<rdar://problem/83782206>