src/hotspot/share/jfr/jni/jfrJniMethod.cpp
changeset 58863 c16ac7a2eba4
parent 53897 0abec72a3ac2
child 59226 a0f39cc47387
equal deleted inserted replaced
58861:2c3cc4b01880 58863:c16ac7a2eba4
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   282 
   282 
   283 JVM_ENTRY_NO_ENV(jboolean, jfr_event_writer_flush(JNIEnv* env, jclass cls, jobject writer, jint used_size, jint requested_size))
   283 JVM_ENTRY_NO_ENV(jboolean, jfr_event_writer_flush(JNIEnv* env, jclass cls, jobject writer, jint used_size, jint requested_size))
   284   return JfrJavaEventWriter::flush(writer, used_size, requested_size, thread);
   284   return JfrJavaEventWriter::flush(writer, used_size, requested_size, thread);
   285 JVM_END
   285 JVM_END
   286 
   286 
       
   287 JVM_ENTRY_NO_ENV(void, jfr_flush(JNIEnv* env, jobject jvm))
       
   288   JfrRepository::flush(thread);
       
   289 JVM_END
       
   290 
   287 JVM_ENTRY_NO_ENV(void, jfr_set_repository_location(JNIEnv* env, jobject repo, jstring location))
   291 JVM_ENTRY_NO_ENV(void, jfr_set_repository_location(JNIEnv* env, jobject repo, jstring location))
   288   return JfrRepository::set_path(location, thread);
   292   return JfrRepository::set_path(location, thread);
   289 JVM_END
   293 JVM_END
   290 
   294 
   291 JVM_ENTRY_NO_ENV(void, jfr_uncaught_exception(JNIEnv* env, jobject jvm, jobject t, jthrowable throwable))
   295 JVM_ENTRY_NO_ENV(void, jfr_uncaught_exception(JNIEnv* env, jobject jvm, jobject t, jthrowable throwable))
   309 JVM_END
   313 JVM_END
   310 
   314 
   311 JVM_ENTRY_NO_ENV(void, jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean emit_all))
   315 JVM_ENTRY_NO_ENV(void, jfr_emit_old_object_samples(JNIEnv* env, jobject jvm, jlong cutoff_ticks, jboolean emit_all))
   312   LeakProfiler::emit_events(cutoff_ticks, emit_all == JNI_TRUE);
   316   LeakProfiler::emit_events(cutoff_ticks, emit_all == JNI_TRUE);
   313 JVM_END
   317 JVM_END
       
   318 
       
   319 JVM_ENTRY_NO_ENV(void, jfr_exclude_thread(JNIEnv* env, jobject jvm, jobject t))
       
   320   JfrJavaSupport::exclude(t);
       
   321 JVM_END
       
   322 
       
   323 JVM_ENTRY_NO_ENV(void, jfr_include_thread(JNIEnv* env, jobject jvm, jobject t))
       
   324   JfrJavaSupport::include(t);
       
   325 JVM_END
       
   326 
       
   327 JVM_ENTRY_NO_ENV(jboolean, jfr_is_thread_excluded(JNIEnv* env, jobject jvm, jobject t))
       
   328   return JfrJavaSupport::is_excluded(t);
       
   329 JVM_END
       
   330 
       
   331 JVM_ENTRY_NO_ENV(jlong, jfr_chunk_start_nanos(JNIEnv* env, jobject jvm))
       
   332   return JfrRepository::current_chunk_start_nanos();
       
   333 JVM_END
       
   334