mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-24 01:00:27 +00:00
7007040: Check of capacity paramenters in JNI_PushLocalFrame is wrong
Changed AND to OR Reviewed-by: coleenp, hseigel
This commit is contained in:
parent
326b206183
commit
17ebe26fa0
@ -879,7 +879,7 @@ JNI_ENTRY(jint, jni_PushLocalFrame(JNIEnv *env, jint capacity))
|
||||
env, capacity);
|
||||
#endif /* USDT2 */
|
||||
//%note jni_11
|
||||
if (capacity < 0 && capacity > MAX_REASONABLE_LOCAL_CAPACITY) {
|
||||
if (capacity < 0 || capacity > MAX_REASONABLE_LOCAL_CAPACITY) {
|
||||
#ifndef USDT2
|
||||
DTRACE_PROBE1(hotspot_jni, PushLocalFrame__return, JNI_ERR);
|
||||
#else /* USDT2 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user