-
Notifications
You must be signed in to change notification settings - Fork 30.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: lock the isolate properly in IsolateData destructor #57031
base: main
Are you sure you want to change the base?
Conversation
Otherwise it may fail the DCHECK that uses the locked thread as a fast path to get the current thread.
Looks like we can't do that on the main branch. Feel free to push the commit to #56959 |
It seems it also fails in the V8 13.3 branch in the cctest, I suspect that this is also exposing that we aren't using |
Looks like it's the cctests not locking threads and the exposure kinda spreads once someone is locking the threads. The second commits fix them locally for me. |
@nodejs/cpp-reviewers |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #57031 +/- ##
=======================================
Coverage 89.11% 89.11%
=======================================
Files 665 665
Lines 193193 193194 +1
Branches 37212 37212
=======================================
+ Hits 172158 172168 +10
+ Misses 13775 13774 -1
+ Partials 7260 7252 -8
|
Otherwise it may fail the DCHECK that uses the locked thread as a fast path to get the current thread.