| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f79ac33 commit d76e16b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -217,7 +217,13 @@ class WorkerThreadData { | |||
| 217 | 217 | CHECK(!loop_init_failed_); | |
| 218 | 218 | bool platform_finished = false; | |
| 219 | 219 | ||
| 220 | - isolate_data_.reset(); | ||
| 220 | + // https://github.com/nodejs/node/issues/51129 - IsolateData destructor | ||
| 221 | + // can kick off GC before teardown, so ensure the isolate is entered. | ||
| 222 | + { | ||
| 223 | + Locker locker(isolate); | ||
| 224 | + Isolate::Scope isolate_scope(isolate); | ||
| 225 | + isolate_data_.reset(); | ||
| 226 | + } | ||
| 221 | 227 | ||
| 222 | 228 | w_->platform_->AddIsolateFinishedCallback(isolate, [](void* data) { | |
| 223 | 229 | *static_cast<bool*>(data) = true; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments