Please sign in to comment.
src: dispose of V8 platform in `process.exit()`
Calling `process.exit()` calls the C `exit()` function, which in turn calls the destructors of static C++ objects. This can lead to race conditions with other concurrently executing threads; disposing of all Worker threads and then the V8 platform instance helps with this (although it might not be a full solution for all problems of this kind). Refs: #24403 Refs: #25007 PR-URL: #25061 Reviewed-By: Gireesh Punathil <email@example.com> Reviewed-By: Joyee Cheung <firstname.lastname@example.org> Reviewed-By: Ben Noordhuis <email@example.com>
- Loading branch information...
Showing with 10 additions and 2 deletions.