equal
deleted
inserted
replaced
190 JVM_ENTRY_NO_ENV(jboolean, jfr_create_jfr(JNIEnv* env, jobject jvm, jboolean simulate_failure)) |
190 JVM_ENTRY_NO_ENV(jboolean, jfr_create_jfr(JNIEnv* env, jobject jvm, jboolean simulate_failure)) |
191 if (JfrRecorder::is_created()) { |
191 if (JfrRecorder::is_created()) { |
192 return JNI_TRUE; |
192 return JNI_TRUE; |
193 } |
193 } |
194 if (!JfrRecorder::create(simulate_failure == JNI_TRUE)) { |
194 if (!JfrRecorder::create(simulate_failure == JNI_TRUE)) { |
195 JfrJavaSupport::throw_illegal_state_exception("Unable to start Jfr", thread); |
195 if (!thread->has_pending_exception()) { |
|
196 JfrJavaSupport::throw_illegal_state_exception("Unable to start Jfr", thread); |
|
197 } |
196 return JNI_FALSE; |
198 return JNI_FALSE; |
197 } |
199 } |
198 return JNI_TRUE; |
200 return JNI_TRUE; |
199 JVM_END |
201 JVM_END |
200 |
202 |