Skip to content

Commit a672138

Browse files
author
Markus Grönlund
committed
8344161: Argument type mismatch for jfr_type_id
Reviewed-by: kbarrett
1 parent 3245f56 commit a672138

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hotspot/share/jfr/jni/jfrJniMethod.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ NO_TRANSITION(jboolean, jfr_set_throttle(JNIEnv* env, jclass jvm, jlong event_ty
169169
return JNI_TRUE;
170170
NO_TRANSITION_END
171171

172-
NO_TRANSITION(void, jfr_set_miscellaneous(JNIEnv* env, jobject jvm, jlong event_type_id, jlong value))
172+
NO_TRANSITION(void, jfr_set_miscellaneous(JNIEnv* env, jclass jvm, jlong event_type_id, jlong value))
173173
JfrEventSetting::set_miscellaneous(event_type_id, value);
174174
const JfrEventId typed_event_id = (JfrEventId)event_type_id;
175175
if (EventDeprecatedInvocation::eventId == typed_event_id) {

src/hotspot/share/jfr/jni/jfrJniMethod.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jboolean JNICALL jfr_is_available(JNIEnv* env, jclass jvm);
101101

102102
jdouble JNICALL jfr_time_conv_factor(JNIEnv* env, jclass jvm);
103103

104-
jlong JNICALL jfr_type_id(JNIEnv* env, jobject jvm, jclass jc);
104+
jlong JNICALL jfr_type_id(JNIEnv* env, jclass jvm, jclass jc);
105105

106106
void JNICALL jfr_set_repository_location(JNIEnv* env, jclass jvm, jstring location);
107107

@@ -129,7 +129,7 @@ jlong JNICALL jfr_get_unloaded_event_classes_count(JNIEnv* env, jclass jvm);
129129

130130
jboolean JNICALL jfr_set_throttle(JNIEnv* env, jclass jvm, jlong event_type_id, jlong event_sample_size, jlong period_ms);
131131

132-
void JNICALL jfr_set_miscellaneous(JNIEnv* env, jobject jvm, jlong id, jlong value);
132+
void JNICALL jfr_set_miscellaneous(JNIEnv* env, jclass jvm, jlong id, jlong value);
133133

134134
void JNICALL jfr_emit_old_object_samples(JNIEnv* env, jclass jvm, jlong cutoff_ticks, jboolean, jboolean);
135135

0 commit comments

Comments
 (0)