Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8241319: WB_GetCodeBlob doesn't have ResourceMark
Reviewed-by: iignatyev, thartmann
  • Loading branch information
lmesnik committed Mar 21, 2020
1 parent 17ff85d commit f778ad2f4b014c4ff9bdffe43e8bf4014582db8c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/hotspot/share/prims/whitebox.cpp
@@ -1513,6 +1513,7 @@ struct CodeBlobStub {
};

static jobjectArray codeBlob2objectArray(JavaThread* thread, JNIEnv* env, CodeBlobStub* cb) {
ResourceMark rm;
jclass clazz = env->FindClass(vmSymbols::java_lang_Object()->as_C_string());
CHECK_JNI_EXCEPTION_(env, NULL);
jobjectArray result = env->NewObjectArray(4, clazz, NULL);

0 comments on commit f778ad2

Please sign in to comment.