RFR: 8332935: Crash: assert(*lastPtr != 0) failed: Mismatched JNINativeInterface tables, check for new entries
Daniel D. Daugherty
dcubed at openjdk.org
Fri May 31 20:07:04 UTC 2024
On Thu, 30 May 2024 23:43:00 GMT, David Holmes <dholmes at openjdk.org> wrote:
> 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.
Thumbs up. This is a trivial fix. You should consider updating the copyright year.
-------------
Marked as reviewed by dcubed (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/19491#pullrequestreview-2091634633
More information about the hotspot-dev
mailing list