[webkit-changes] [WebKit/WebKit] 9ce25c: [JSC] Wire memory allocation reporting to ArrayBuf...
Yusuke Suzuki
noreply at github.com
Sun Nov 27 00:54:44 PST 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9ce25c632ccd854836b77fe74612cfa097574932
https://github.com/WebKit/WebKit/commit/9ce25c632ccd854836b77fe74612cfa097574932
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2022-11-27 (Sun, 27 Nov 2022)
Changed paths:
M Source/JavaScriptCore/runtime/ArrayBuffer.cpp
M Source/JavaScriptCore/runtime/ArrayBuffer.h
M Source/JavaScriptCore/wasm/WasmMemory.cpp
Log Message:
-----------
[JSC] Wire memory allocation reporting to ArrayBuffer resize / grow
https://bugs.webkit.org/show_bug.cgi?id=248369
rdar://102685157
Reviewed by Ross Kirsling.
Add vm.heap.reportExtraMemoryAllocated when ArrayBuffer resize / grow extends its allocated memory.
* Source/JavaScriptCore/runtime/ArrayBuffer.cpp:
(JSC::ArrayBuffer::grow):
(JSC::ArrayBuffer::resize):
(JSC::SharedArrayBufferContents::grow):
* Source/JavaScriptCore/runtime/ArrayBuffer.h:
Canonical link: https://commits.webkit.org/257042@main
More information about the webkit-changes
mailing list