Skip to content

Commit

Permalink
Merge pull request #13900 from keithc-ca/nativelibs
Browse files Browse the repository at this point in the history
Update comment about signature of NativeLibraries.load()
  • Loading branch information
pshipton committed Nov 10, 2021
2 parents 4911a34 + e16816d commit 8b59e5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/vm/jnimisc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ getCurrentClassLoader(J9VMThread *currentThread)
/* special case - if jdk/internal/loader/NativeLibraries.load(NativeLibraryImpl impl, String name, boolean isBuiltin, boolean isJNI)
* is the current native method, use the class loader of "impl.fromClass".
* This nativeMethod can't be cached cause HCR might make it invalid.
*
* Note that in jdk18, the signature of that method changed to
* NativeLibraries.load(NativeLibraryImpl impl, String name, boolean isBuiltin, boolean isJNI, boolean throwOnFailure)
*/
if (J9VMJDKINTERNALLOADERNATIVELIBRARIES_LOAD_METHOD(currentThread->javaVM) == nativeMethod) {
/* The current native method has a NativeLibraryImpl instance as its first argument */
Expand Down

0 comments on commit 8b59e5c

Please sign in to comment.