Skip to content

Add missed check for compressed string to jniReleaseStringCritical() - #17641

Merged
amicic merged 1 commit into
eclipse-openj9:masterfrom
dmitripivkine:master
Jun 26, 2023
Merged

Add missed check for compressed string to jniReleaseStringCritical()#17641
amicic merged 1 commit into
eclipse-openj9:masterfrom
dmitripivkine:master

Conversation

@dmitripivkine

Copy link
Copy Markdown
Contributor

There is missed check for compressed string in
MM_VLHGCAccessBarrier::jniReleaseStringCritical() - there is check that compressed strings are enabled. It assumes if strings compression is enabled every single one should be compressed (not true in general). Also added missed check is string compression is enabled to MM_VLHGCAccessBarrier::jniGetStringCritical()

Issue #17598

There is missed check for compressed string in
MM_VLHGCAccessBarrier::jniReleaseStringCritical() - there is check that
compressed strings are enabled. It assumes if strings compression is
enabled every single one should be compressed (not true in general).
Also added missed check is string compression is enabled to
MM_VLHGCAccessBarrier::jniGetStringCritical()

Issue eclipse-openj9#17598

Signed-off-by: Dmitri Pivkine <Dmitri_Pivkine@ca.ibm.com>
@amicic

amicic commented Jun 22, 2023

Copy link
Copy Markdown
Contributor

jenkins test sanity win,aix jdk11

@dmitripivkine

Copy link
Copy Markdown
Contributor Author

Jenkins compile aix jdk17

@dmitripivkine

Copy link
Copy Markdown
Contributor Author

Grinder to verify fix: https://openj9-jenkins.osuosl.org/job/Grinder/2518/ (I hope I set it up correctly).
Fix itself is correct any way and can be merged. The question is it the fix for original problem

@dmitripivkine

Copy link
Copy Markdown
Contributor Author

Grinder to verify fix: https://openj9-jenkins.osuosl.org/job/Grinder/2518/ (I hope I set it up correctly).
Fix itself is correct any way and can be merged. The question is it the fix for original problem

Build is green, however I don't see it was using Balanced, so it was not correct. Launching another grinder https://openj9-jenkins.osuosl.org/job/Grinder/2521/

@dchopra001

Copy link
Copy Markdown
Contributor

To verify we need to test with the -XX:+CompactStrings option enabled. I was able to generate a build and run this test locally over the weekend and the StringPlatformChars test passes with this fix.

I also launched a general build with the fix here + string compression enabled over the weekend and it looks clean (the existing failures look clean/reproductions of existing issues): https://openj9-jenkins.osuosl.org/job/Pipeline-Build-Test-CompactString/16/.

@amicic
amicic merged commit 5dd147e into eclipse-openj9:master Jun 26, 2023
@pshipton

Copy link
Copy Markdown
Member

Pls create a PR for 0.40

@amicic amicic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I missed to formally approve this before merging, but it's was looking good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants