-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove MallocPtr. #46668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Remove MallocPtr. #46668
Conversation
EWS run on previous version of this PR (hash 7410798) |
7410798
to
6678b99
Compare
EWS run on previous version of this PR (hash 6678b99) |
6678b99
to
bc85f99
Compare
EWS run on previous version of this PR (hash bc85f99) |
bc85f99
to
b891220
Compare
EWS run on previous version of this PR (hash b891220) |
b891220
to
b738ca1
Compare
EWS run on previous version of this PR (hash b738ca1) |
b738ca1
to
2805260
Compare
EWS run on previous version of this PR (hash 2805260) |
2805260
to
3d68555
Compare
EWS run on previous version of this PR (hash 3d68555) |
https://bugs.webkit.org/show_bug.cgi?id=294022 rdar://152575154 Reviewed by NOBODY (OOPS!). This patch changes `MallocPtr` to require the parameter type `T` to be trivially destructible. The usage of `MallocPtr` in `WasmTable` which was responsible for a callee leak is now incompatible with that requirement. `WasmTable` is changed to use `std::unique_ptr` with a custom deleter that correctly destroys the table contents. Additionally, `VM` is changed to use a `FixedVector` instead of a `MallocPtr` to allocate the exception fuzzing buffer. * Source/JavaScriptCore/bytecode/ExpressionInfo.h: * Source/JavaScriptCore/runtime/CachedTypes.cpp: * Source/JavaScriptCore/runtime/VM.h: (JSC::VM::exceptionFuzzingBuffer): * Source/JavaScriptCore/wasm/WasmTable.cpp: (JSC::Wasm::Table::StorageDeleter<T>::operator): (JSC::Wasm::reallocate): (JSC::Wasm::Table::grow): (JSC::Wasm::ExternOrAnyRefTable::ExternOrAnyRefTable): (JSC::Wasm::FuncRefTable::FuncRefTable): (JSC::Wasm::FuncRefTable::~FuncRefTable): Deleted. * Source/JavaScriptCore/wasm/WasmTable.h: * Source/WTF/wtf/MallocPtr.h:
3d68555
to
8928eb7
Compare
EWS run on current version of this PR (hash 8928eb7) |
8928eb7
8928eb7
🛠 playstation