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

Set thread.started after running <init> #18310

Merged
merged 1 commit into from
Oct 20, 2023
Merged

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Oct 19, 2023

Currently we set thread.started = true for system threads before running the constructor. This causes a race condition where the thread object may be made visible while it is being constructed potentially causing NPEs.

@tajila tajila requested a review from babsingh October 19, 2023 17:11
@tajila
Copy link
Contributor Author

tajila commented Oct 19, 2023

jenkins test sanity alinux64 jdk21

@tajila
Copy link
Contributor Author

tajila commented Oct 19, 2023

jenkins test sanity alinux64 jdk21

Current we set `thread.started = true` for system threads before running
the constructor. This causes a race condition where the thread object
may be made visible while it is being constructed potentially causing
NPEs.

Signed-off-by: Tobi Ajila <[email protected]>
@tajila
Copy link
Contributor Author

tajila commented Oct 19, 2023

jenkins test sanity alinux64 jdk21

@babsingh babsingh merged commit 6663162 into eclipse-openj9:master Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants