7007040: Check of capacity paramenters in JNI_PushLocalFrame is wrong

Changed AND to OR

Reviewed-by: coleenp, hseigel
This commit is contained in:
Lois Foltan 2013-06-30 09:59:08 -04:00 committed by Harold Seigel
parent 326b206183
commit 17ebe26fa0

View file

@ -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 */