Skip to content

Commit

Permalink
JVM_LoadLibrary() must use lazy library loading by default
Browse files Browse the repository at this point in the history
Re-include cmdLineTester_defaultLazySymbolResolution for jdk15+

Issue eclipse-openj9#11076

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
  • Loading branch information
pshipton committed Jan 7, 2021
1 parent 137829d commit c404a07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion runtime/j9vm/jvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3692,7 +3692,7 @@ JVM_LoadLibrary(const char *libName)
} else {
PORT_ACCESS_FROM_JAVAVM(javaVM);
UDATA handle = 0;
UDATA flags = 0;
UDATA flags = J9_ARE_ANY_BITS_SET(javaVM->extendedRuntimeFlags, J9_EXTENDED_RUNTIME_LAZY_SYMBOL_RESOLUTION) ? J9PORT_SLOPEN_LAZY : 0;
UDATA slOpenResult = j9sl_open_shared_library((char *)libName, &handle, flags);

Trc_SC_LoadLibrary_OpenShared(libName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
<types>
<type>native</type>
</types>
<subsets>
<!-- disable for 15+ https://github.com/eclipse/openj9/issues/11076 -->
<subset>8</subset>
<subset>11</subset>
</subsets>
<impls>
<impl>openj9</impl>
<impl>ibm</impl>
Expand Down

0 comments on commit c404a07

Please sign in to comment.