8344161: Argument type mismatch for jfr_type_id

Reviewed-by: kbarrett
This commit is contained in:
Markus Grönlund 2024-11-15 13:38:52 +00:00
parent 3245f56e53
commit a672138aa7
2 changed files with 3 additions and 3 deletions
src/hotspot/share/jfr/jni

@ -169,7 +169,7 @@ NO_TRANSITION(jboolean, jfr_set_throttle(JNIEnv* env, jclass jvm, jlong event_ty
return JNI_TRUE;
NO_TRANSITION_END
NO_TRANSITION(void, jfr_set_miscellaneous(JNIEnv* env, jobject jvm, jlong event_type_id, jlong value))
NO_TRANSITION(void, jfr_set_miscellaneous(JNIEnv* env, jclass jvm, jlong event_type_id, jlong value))
JfrEventSetting::set_miscellaneous(event_type_id, value);
const JfrEventId typed_event_id = (JfrEventId)event_type_id;
if (EventDeprecatedInvocation::eventId == typed_event_id) {

@ -101,7 +101,7 @@ jboolean JNICALL jfr_is_available(JNIEnv* env, jclass jvm);
jdouble JNICALL jfr_time_conv_factor(JNIEnv* env, jclass jvm);
jlong JNICALL jfr_type_id(JNIEnv* env, jobject jvm, jclass jc);
jlong JNICALL jfr_type_id(JNIEnv* env, jclass jvm, jclass jc);
void JNICALL jfr_set_repository_location(JNIEnv* env, jclass jvm, jstring location);
@ -129,7 +129,7 @@ jlong JNICALL jfr_get_unloaded_event_classes_count(JNIEnv* env, jclass jvm);
jboolean JNICALL jfr_set_throttle(JNIEnv* env, jclass jvm, jlong event_type_id, jlong event_sample_size, jlong period_ms);
void JNICALL jfr_set_miscellaneous(JNIEnv* env, jobject jvm, jlong id, jlong value);
void JNICALL jfr_set_miscellaneous(JNIEnv* env, jclass jvm, jlong id, jlong value);
void JNICALL jfr_emit_old_object_samples(JNIEnv* env, jclass jvm, jlong cutoff_ticks, jboolean, jboolean);