296 JVM_ENTRY_NO_ENV(jlong, jfr_type_id(JNIEnv* env, jobject jvm, jclass jc)) |
296 JVM_ENTRY_NO_ENV(jlong, jfr_type_id(JNIEnv* env, jobject jvm, jclass jc)) |
297 return JfrTraceId::get(jc); |
297 return JfrTraceId::get(jc); |
298 JVM_END |
298 JVM_END |
299 |
299 |
300 JVM_ENTRY_NO_ENV(jboolean, jfr_add_string_constant(JNIEnv* env, jclass jvm, jboolean epoch, jlong id, jstring string)) |
300 JVM_ENTRY_NO_ENV(jboolean, jfr_add_string_constant(JNIEnv* env, jclass jvm, jboolean epoch, jlong id, jstring string)) |
301 return JfrStringPool::add(epoch == JNI_TRUE, id, string, thread); |
301 return JfrStringPool::add(epoch == JNI_TRUE, id, string, thread) ? JNI_TRUE : JNI_FALSE; |
302 JVM_END |
302 JVM_END |
303 |
303 |
304 JVM_ENTRY_NO_ENV(void, jfr_set_force_instrumentation(JNIEnv* env, jobject jvm, jboolean force_instrumentation)) |
304 JVM_ENTRY_NO_ENV(void, jfr_set_force_instrumentation(JNIEnv* env, jobject jvm, jboolean force_instrumentation)) |
305 JfrEventClassTransformer::set_force_instrumentation(force_instrumentation == JNI_TRUE ? true : false); |
305 JfrEventClassTransformer::set_force_instrumentation(force_instrumentation == JNI_TRUE); |
306 JVM_END |
306 JVM_END |
307 |
307 |
308 JVM_ENTRY_NO_ENV(void, jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean emit_all)) |
308 JVM_ENTRY_NO_ENV(void, jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean emit_all)) |
309 LeakProfiler::emit_events(cutoff_ticks, emit_all == JNI_TRUE); |
309 LeakProfiler::emit_events(cutoff_ticks, emit_all == JNI_TRUE); |
310 JVM_END |
310 JVM_END |