8230395: Code checks for NULL value returned from NEW_C_HEAP_ARRAY which can not happen

Reviewed-by: lkorinth, hseigel, thartmann, dnsimon
This commit is contained in:
David Holmes 2019-09-24 03:28:42 -04:00
parent 0e264cfe36
commit 23ec926327
16 changed files with 80 additions and 176 deletions

View file

@ -1149,8 +1149,8 @@ C2V_VMENTRY_0(jint, getCountersSize, (JNIEnv* env, jobject))
return (jint) JVMCICounterSize;
C2V_END
C2V_VMENTRY_0(jboolean, setCountersSize, (JNIEnv* env, jobject, jint new_size))
return JavaThread::resize_all_jvmci_counters(new_size);
C2V_VMENTRY(void, setCountersSize, (JNIEnv* env, jobject, jint new_size))
JavaThread::resize_all_jvmci_counters(new_size);
C2V_END
C2V_VMENTRY_0(jint, allocateCompileId, (JNIEnv* env, jobject, jobject jvmci_method, int entry_bci))
@ -2696,7 +2696,7 @@ JNINativeMethod CompilerToVM::methods[] = {
{CC "readUncompressedOop", CC "(J)" OBJECTCONSTANT, FN_PTR(readUncompressedOop)},
{CC "collectCounters", CC "()[J", FN_PTR(collectCounters)},
{CC "getCountersSize", CC "()I", FN_PTR(getCountersSize)},
{CC "setCountersSize", CC "(I)Z", FN_PTR(setCountersSize)},
{CC "setCountersSize", CC "(I)V", FN_PTR(setCountersSize)},
{CC "allocateCompileId", CC "(" HS_RESOLVED_METHOD "I)I", FN_PTR(allocateCompileId)},
{CC "isMature", CC "(" METASPACE_METHOD_DATA ")Z", FN_PTR(isMature)},
{CC "hasCompiledCodeForOSR", CC "(" HS_RESOLVED_METHOD "II)Z", FN_PTR(hasCompiledCodeForOSR)},