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

[GR-59531] Use Thread#join() to wait for Fibers instead of a CountDownLatch #3701

Closed
wants to merge 2 commits into from

Conversation

graalvmbot
Copy link
Collaborator

No description provided.

* Otherwise multi-threading can be triggerred due to concurrently running:
  * disposeThread() for the main Thread, which kills Fibers of the main Ruby Thread
  * disposeThread() on one of these Fiber thread as a result of being killed
* The former runs in leaveAndEnter() but the early countDown() meant
  it can re-enter before the Fiber has left the context.
* Now that we don't use a thread pool for Fibers anymore this should be fine.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 1, 2024
@graalvmbot graalvmbot closed this Nov 1, 2024
@graalvmbot graalvmbot deleted the bd/fix-fiber-finishedLatch-countDown branch November 1, 2024 15:06
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