Skip to content

Set thread.started after running <init> - #18310

Merged
babsingh merged 1 commit into
eclipse-openj9:masterfrom
tajila:issue1
Oct 20, 2023
Merged

Set thread.started after running <init>#18310
babsingh merged 1 commit into
eclipse-openj9:masterfrom
tajila:issue1

Conversation

@tajila

@tajila tajila commented Oct 19, 2023

Copy link
Copy Markdown
Contributor

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

tajila commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

jenkins test sanity alinux64 jdk21

@tajila

tajila commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

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 <atobia@ca.ibm.com>
@tajila

tajila commented Oct 19, 2023

Copy link
Copy Markdown
Contributor Author

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