Skip to content

Commit d0949c8

Browse files
vieiroTheRealMDoerr
authored andcommitted
8332935: Crash: assert(*lastPtr != 0) failed: Mismatched JNINativeInterface tables, check for new entries
Backport-of: 90699828478fe0a1307ad68cc0cb368fe4db890e
1 parent 82a609d commit d0949c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/prims/jniCheck.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -2316,7 +2316,7 @@ struct JNINativeInterface_* jni_functions_check() {
23162316
// make sure the last pointer in the checked table is not null, indicating
23172317
// an addition to the JNINativeInterface_ structure without initializing
23182318
// it in the checked table.
2319-
debug_only(int *lastPtr = (int *)((char *)&checked_jni_NativeInterface + \
2319+
debug_only(intptr_t *lastPtr = (intptr_t *)((char *)&checked_jni_NativeInterface + \
23202320
sizeof(*unchecked_jni_NativeInterface) - sizeof(char *));)
23212321
assert(*lastPtr != 0,
23222322
"Mismatched JNINativeInterface tables, check for new entries");

0 commit comments

Comments
 (0)