mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-22 04:40:01 +00:00
60e0859514
Due to the automatic entry and exit behavior of Isolate upon creation and drop, it is crucial to ensure that v8::OwnedIsolate instances are dropped in the reverse order of their creation. Dropping them in the incorrect order can result in the corruption of the thread-local stack managed by v8, leading to memory corruption and potential segfaults. This introduces a check to verify the `this == Isolate::GetCurrent()` requirement before invoking the exit function. If the requirement is not met, a clean panic is triggered to provide explicit error handling instead of allowing silent memory corruption. |
||
---|---|---|
.. | ||
compile_fail | ||
slots.rs | ||
test_api_entropy_source.rs | ||
test_api_flags.rs | ||
test_api.rs | ||
test_concurrent_isolate_creation_and_disposal.rs | ||
test_cppgc.rs | ||
test_platform_atomics_pump_message_loop.rs | ||
test_single_threaded_default_platform.rs | ||
test_ui.rs |