Skip to content

j9gc_createJavaLangString protects string objects across GC points - #17744

Merged
dmitripivkine merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:gcstr
Jul 7, 2023
Merged

j9gc_createJavaLangString protects string objects across GC points#17744
dmitripivkine merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:gcstr

Conversation

@JasonFengJ9

Copy link
Copy Markdown
Member

j9gc_createJavaLangString protects string objects across GC points

Added PUSH_OBJECT_IN_SPECIAL_FRAME/POP_OBJECT_IN_SPECIAL_FRAME pairs.

closes #17738

FYI @dmitripivkine

Signed-off-by: Jason Feng fengj@ca.ibm.com

Added PUSH_OBJECT_IN_SPECIAL_FRAME/POP_OBJECT_IN_SPECIAL_FRAME pairs.

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@pshipton

pshipton commented Jul 6, 2023

Copy link
Copy Markdown
Member

This seems a low risk change we should add to the 0.40 release.

@tajila

tajila commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

jenkins test sanity alinux64 jdk17

@JasonFengJ9

Copy link
Copy Markdown
Member Author

@dmitripivkine
dmitripivkine merged commit 8316e3c into eclipse-openj9:master Jul 7, 2023
@JasonFengJ9
JasonFengJ9 deleted the gcstr branch July 7, 2023 12:53
@gacholio

gacholio commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

@JasonFengJ9 Have you verified that every caller of the modified function has a special frame on stack? You can't use the push/pop macros without the right kind of frame.

@gacholio

gacholio commented Aug 1, 2023

Copy link
Copy Markdown
Contributor

Nevermind - I see the API is already making the assumption (using the macros). There still may be cases which are invalid, but this change makes nothing worse.

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.

SharedClasses.SCM01.MultiThreadMultiCL_0_FAILED Segmentation error vmState=0x00000000 Symbol=computeJavaHashForExpandedString

5 participants