Skip to content

Commit 98a2b05

Browse files
committed
fix: remove racy call to isolate->IsExecutionTerminating()
Signed-off-by: Matt Leon <[email protected]>
1 parent 6f69af4 commit 98a2b05

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
@@ -703,9 +703,6 @@ void V8::terminate() {
703703
auto *store_impl = reinterpret_cast<wasm::StoreImpl *>(store_.get());
704704
auto *isolate = store_impl->isolate();
705705
isolate->TerminateExecution();
706-
while (isolate->IsExecutionTerminating()) {
707-
std::this_thread::yield();
708-
}
709706
}
710707

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

0 commit comments

Comments
 (0)