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 a74db65 commit 849049b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Copyright (c) 2020, 2020 IBM Corp. and others
Copyright (c) 2020, 2021 IBM Corp. and others
This program and the accompanying materials are made available under
the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down 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 849049b

Please sign in to comment.