Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maybe fix platform delegate race condition
If a new isolate environment is allocated right after a previous one is deallocated then the new one could possibly get the same memory pointer as the previous one. This would cause node's `RegisterIsolate` API to fail because it already has a registered isolate with that pointer. I think maybe v8's `Isolate::Dispose()` method should be split out into `Destroy()` and `Deallocate()` in the same way `Create()` was split into `Allocate()` and `Initialize()`. The fact that `Dispose()` potentially invokes callbacks doesn't give us any way to run hook after callbacks are done but before memory is freed.
- Loading branch information