Skip to content

Commit 619bf90

Browse files
committed
fix: remove racy call to isolate->IsExecutionTerminating()
Signed-off-by: Matt Leon <[email protected]>
1 parent 724d4e3 commit 619bf90

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/v8/v8.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -706,9 +706,6 @@ void V8::terminate() {
706706
auto *store_impl = reinterpret_cast<wasm::StoreImpl *>(store_.get());
707707
auto *isolate = store_impl->isolate();
708708
isolate->TerminateExecution();
709-
while (isolate->IsExecutionTerminating()) {
710-
std::this_thread::yield();
711-
}
712709
}
713710

714711
std::string V8::getFailMessage(std::string_view function_name, wasm::own<wasm::Trap> trap) {

0 commit comments

Comments
 (0)