# HG changeset patch # User hseigel # Date 1372600748 14400 # Node ID 97c5acae48be701279415ead70d31d66fe7c3a46 # Parent bb4f2b27e824855025931ca07d8dee752f0e3bc2 7007040: Check of capacity paramenters in JNI_PushLocalFrame is wrong Summary: changed AND to OR Reviewed-by: coleenp, hseigel Contributed-by: lois.foltan@oracle.com diff -r bb4f2b27e824 -r 97c5acae48be src/share/vm/prims/jni.cpp --- a/src/share/vm/prims/jni.cpp Sat Jun 29 11:55:09 2013 -0700 +++ b/src/share/vm/prims/jni.cpp Sun Jun 30 09:59:08 2013 -0400 @@ -879,7 +879,7 @@ 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 */