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

Use a nested holder class to store allPermissionsPD #21077

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Feb 6, 2025

Using this approach, allPermissionsPD can be a final field. VM's class
initialization mechanisms will prevent races via the static block.

Fixes: #20351

@babsingh babsingh requested a review from keithc-ca February 6, 2025 15:08
@babsingh babsingh force-pushed the main13 branch 2 times, most recently from cc5ef2f to e51a32e Compare February 6, 2025 15:24
@babsingh babsingh changed the title Use a static synchronized method for allPermissionsPD Use a nested holder class to store allPermissionsPD Feb 6, 2025
@babsingh
Copy link
Contributor Author

babsingh commented Feb 6, 2025

@keithc-ca Have I implemented your suggestion in #21073 (comment) correctly?

Using this approach, allPermissionsPD can be a final field. VM's class
initialization mechanisms will prevent races via the static block.

Fixes: eclipse-openj9#20351

Signed-off-by: Babneet Singh <[email protected]>
@keithc-ca
Copy link
Contributor

Jenkins compile amac jdk21

@keithc-ca keithc-ca merged commit fcec762 into eclipse-openj9:master Feb 6, 2025
4 checks passed
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Feb 6, 2025
ProtectionDomainRace has been fixed by
eclipse-openj9/openj9#21077

Signed-off-by: Babneet Singh <[email protected]>
llxia pushed a commit to adoptium/aqa-tests that referenced this pull request Feb 6, 2025
ProtectionDomainRace has been fixed by
eclipse-openj9/openj9#21077

Signed-off-by: Babneet Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jdk24 java.lang.AssertionError: sun.security.util.ResourcesMgr (PD)
3 participants