Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joyeecheung
Copy link
Member

Otherwise it may fail the DCHECK that uses the locked thread as a fast path to get the current thread.

Otherwise it may fail the DCHECK that uses the locked thread
as a fast path to get the current thread.
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Feb 13, 2025
@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 13, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 13, 2025
@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member

targos commented Feb 13, 2025

Looks like we can't do that on the main branch. Feel free to push the commit to #56959

@joyeecheung
Copy link
Member Author

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 HandleScope properly throughout the codebase.

@joyeecheung
Copy link
Member Author

joyeecheung commented Feb 13, 2025

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.

@targos
Copy link
Member

targos commented Feb 13, 2025

@nodejs/cpp-reviewers

Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.11%. Comparing base (85f5a6c) to head (7bfd05c).
Report is 19 commits behind head on main.

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     
Files with missing lines Coverage Δ
src/env.cc 85.89% <100.00%> (-0.16%) ⬇️

... and 29 files with indirect coverage changes

@joyeecheung joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 14, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 14, 2025
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Feb 14, 2025

@joyeecheung joyeecheung added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants