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

[WIP][GR-55709] Adapt fibers changes: use JavaThread::_lock_id as monitor owner. #9366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

Adapt openjdk/loom#210

  1. Use JavaThread::_lock_id as monitor's owner in inlined code for monitorenter/exit
  2. Update anonymous monitor owner in monitorexit when using stack locking (likely to be reverted)
  3. Implement VirtualThread.setLockId intrinsic

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 24, 2024
@mur47x111
Copy link
Member

@AlanBateman I checked the fibers changes and it seems like the JIT support is quite trivial. In this PR I have updated Graal's inlined monitorenter/exit code to respect JavaThread::_lock_id, and implement the VirtualThread.setLockId intrinsic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants