RFR: 8282608: RawNativeLibraryImpl can't be passed to NativeLibraries::findEntry0

Mandy Chung mchung at openjdk.java.net
Thu Mar 3 22:03:29 UTC 2022


This fixes a bug in JDK-8282515 that `NativeLibraries::findEntry0` reads the handle from the given native library instance with the field ID for `NativeLibraryImpl::handle` which is wrong for `RawNativeLibraryImpl`.  The `NativeLibraries::findEntry0` now takes the handle of the library instead and that can be used to look up symbols in the native library loaded by System::loadLibrary and also RawNativeLibraries.

Tier 1-4 testing is in progress.

-------------

Commit messages:
 - 8282608: RawNativeLibraryImpl can't be passed to NativeLibraries::findEntry0

Changes: https://git.openjdk.java.net/jdk/pull/7684/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7684&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8282608
  Stats: 15 lines in 3 files changed: 0 ins; 7 del; 8 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7684.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7684/head:pull/7684

PR: https://git.openjdk.java.net/jdk/pull/7684


More information about the core-libs-dev mailing list