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

JVM_LoadLibrary() must use lazy library loading by default #11591

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

pshipton
Copy link
Member

@pshipton pshipton commented Jan 7, 2021

Re-include cmdLineTester_defaultLazySymbolResolution for jdk15+

Resolves #11076

See https://github.com/eclipse/openj9/blob/master/runtime/vm/vmbootlib.c#L182-L183

This is a change in behavior for OpenJ9, as prior to jdk15 bootstrap libraries don't use lazy resolution. However it matches the Hotspot behavior. Also note that libraries loaded early in bootstrap don't use lazy resolution since registerBootstrapLibrary() is still called. https://github.com/eclipse/openj9/blob/master/runtime/j9vm/jvm.c#L3686

Tested via personal build and grinder https://ci.eclipse.org/openj9/view/Test/job/Grinder/1355

@pshipton
Copy link
Member Author

pshipton commented Jan 7, 2021

@JasonFengJ9 pls review

Re-include cmdLineTester_defaultLazySymbolResolution for jdk15+

Issue eclipse-openj9#11076

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Copy link
Member

@JasonFengJ9 JasonFengJ9 left a comment

Choose a reason for hiding this comment

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

LGTM

@keithc-ca
Copy link
Contributor

Jenkins test sanity,extended zlinux jdk11,jdk15

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.

JDK15 cmdLineTester_defaultLazySymbolResolution_1_FAILED
3 participants