mirror of
https://github.com/openjdk/jdk22u.git
synced 2025-12-11 04:36:46 -06:00
Backport 8338946a6d765eab9cd7a6cbc24c865a9cd355e7
This commit is contained in:
parent
5602dc7973
commit
56e4710e46
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -2295,7 +2295,7 @@ struct JNINativeInterface_* jni_functions_check() {
|
||||
// make sure the last pointer in the checked table is not null, indicating
|
||||
// an addition to the JNINativeInterface_ structure without initializing
|
||||
// it in the checked table.
|
||||
debug_only(int *lastPtr = (int *)((char *)&checked_jni_NativeInterface + \
|
||||
debug_only(intptr_t *lastPtr = (intptr_t *)((char *)&checked_jni_NativeInterface + \
|
||||
sizeof(*unchecked_jni_NativeInterface) - sizeof(char *));)
|
||||
assert(*lastPtr != 0,
|
||||
"Mismatched JNINativeInterface tables, check for new entries");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user