RFR: 8332935: Crash: assert(*lastPtr != 0) failed: Mismatched JNINativeInterface tables, check for new entries [v2]

David Holmes dholmes at openjdk.org
Fri May 31 23:12:27 UTC 2024


> By using the `int*` type the assert could fail if the lower 32-bits of the function address were all zero. Trivial fix is to change to a type that is guaranteed the right size: `intptr_t*`
> 
> Testing was done manually - see the JBS issue.
> 
> Also run tier4 testing a sanity as it include `-Xcheck:jni`.
> 
> Thanks.

David Holmes has updated the pull request incrementally with one additional commit since the last revision:

  Copyright year

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19491/files
  - new: https://git.openjdk.org/jdk/pull/19491/files/4241674b..51fa807f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19491&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19491&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19491.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19491/head:pull/19491

PR: https://git.openjdk.org/jdk/pull/19491


More information about the hotspot-dev mailing list