Skip to content

Commit

Permalink
Fix JNI transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbachorik committed Oct 3, 2023
1 parent e406459 commit 14cfdd4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/hotspot/share/jfr/jni/jfrJniMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,16 @@ JVM_ENTRY_NO_ENV(void, jfr_emit_data_loss(JNIEnv* env, jclass jvm, jlong bytes))
EventDataLoss::commit(bytes, min_jlong);
JVM_END

JVM_ENTRY_NO_ENV(void, jfr_set_used_context_size(JNIEnv* env, jclass jvm, jint size))
NO_TRANSITION(void, jfr_set_used_context_size(JNIEnv* env, jclass jvm, jint size))
JfrContext::set_used_context_size(size);
JVM_END
NO_TRANSITION_END

JVM_ENTRY_NO_ENV(jboolean, jfr_is_context_enabled(JNIEnv* env, jclass jvmf))
NO_TRANSITION(jboolean, jfr_is_context_enabled(JNIEnv* env, jclass jvmf))
return JfrOptionSet::is_context_enabled();
JVM_END
NO_TRANSITION_END

JVM_ENTRY_NO_ENV(jobject, jfr_get_thread_context_buffer(JNIEnv* env, jclass jvm))
NO_TRANSITION(jobject, jfr_get_thread_context_buffer(JNIEnv* env, jclass jvm))
uint64_t* data;
uint8_t size = JfrContext::get_context(&data);
return env->NewDirectByteBuffer((void*)data, (jlong) size * 8);
JVM_END
NO_TRANSITION_END

0 comments on commit 14cfdd4

Please sign in to comment.