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

Need writeBarrier between resetting the state and freeContinuation #18573

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

LinHu2016
Copy link
Contributor

For weak memory ordering system such as PowerPC, we need to writeBarrier between resetting the state of continuation(set the state to unmounted) and freeing continuation/postUnmountContinuation during continuation unmounting to avoid potential assert/issue caused by inconsist state (in case the instructions are reordered).

related: #16728

Signed-off-by: hulin [email protected]

For weak memory ordering system such as PowerPC, we need to writeBarrier
between resetting the state of continuation(set the state to unmounted)
and freeing continuation/postUnmountContinuation during continuation
unmounting to avoid potential assert/issue caused by inconsist state
(in case the instructions are reordered).

Signed-off-by: hulin <[email protected]>
@pshipton pshipton requested a review from babsingh December 6, 2023 22:58
@pshipton
Copy link
Member

pshipton commented Dec 6, 2023

Once this is approved we need PRs for 0.42 and 0.43 as well.

@babsingh
Copy link
Contributor

babsingh commented Dec 6, 2023

jenkins test sanity alinux64 jdk21

@babsingh
Copy link
Contributor

babsingh commented Dec 7, 2023

jenkins test sanity zlinux jdk21

@babsingh
Copy link
Contributor

babsingh commented Dec 7, 2023

https://openj9-jenkins.osuosl.org/job/Test_openjdk21_j9_sanity.functional_aarch64_linux_Personal/83

Multiple JIT server (@cjjdespres @mpirvu) and CRIU (@tajila @JasonFengJ9) failures are seen in the above PR build. These failures are unrelated to this PR since this PR only adds a write barrier. Started another PR build on zLinux to confirm no relation between the failures and this PR.

image

@pshipton
Copy link
Member

pshipton commented Dec 7, 2023

The JITServer failures or anything like the following is #18571 and should be resolved shortly.

java.lang.UnsatisfiedLinkError: access (Not found in java.library.path)

@pshipton
Copy link
Member

pshipton commented Dec 7, 2023

The criu "Segmentation fault" failures are a machine problem.
#18436

Copy link
Contributor

@babsingh babsingh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the test failures seen in the alinux64 PR build are known failures and unrelated to this PR. For merging this PR, we don't need to wait for the zlinux PR build to complete.

@babsingh babsingh merged commit 8759109 into eclipse-openj9:master Dec 7, 2023
@babsingh
Copy link
Contributor

babsingh commented Dec 8, 2023

@LinHu2016 Can you please port this PR to the v0.42.0-release and v0.43.0-release branches?

@LinHu2016
Copy link
Contributor Author

Hi @babsingh, There is potentially the case(the same assertion), which is discovered by another issue, might not be cover by this PR, I will hold for porting, we might have different solution to handle both cases, so this PR might be unnecessary.

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.

3 participants