--- a/src/hotspot/share/jfr/jni/jfrJavaSupport.hpp Wed Oct 30 16:14:56 2019 +0100
+++ b/src/hotspot/share/jfr/jni/jfrJavaSupport.hpp Wed Oct 30 19:43:52 2019 +0100
@@ -29,18 +29,21 @@
#include "utilities/exceptions.hpp"
class Klass;
-class JavaThread;
class outputStream;
class JfrJavaSupport : public AllStatic {
public:
static jobject local_jni_handle(const oop obj, Thread* t);
static jobject local_jni_handle(const jobject handle, Thread* t);
- static void destroy_local_jni_handle(const jobject handle);
+ static void destroy_local_jni_handle(jobject handle);
static jobject global_jni_handle(const oop obj, Thread* t);
static jobject global_jni_handle(const jobject handle, Thread* t);
- static void destroy_global_jni_handle(const jobject handle);
+ static void destroy_global_jni_handle(jobject handle);
+
+ static jweak global_weak_jni_handle(const oop obj, Thread* t);
+ static jweak global_weak_jni_handle(const jobject handle, Thread* t);
+ static void destroy_global_weak_jni_handle(jweak handle);
static oop resolve_non_null(jobject obj);
static void notify_all(jobject obj, TRAPS);
@@ -85,7 +88,11 @@
static bool is_jdk_jfr_module_available();
static bool is_jdk_jfr_module_available(outputStream* stream, TRAPS);
- static jlong jfr_thread_id(jobject target_thread);
+ static jlong jfr_thread_id(jobject thread);
+ static void exclude(jobject thread);
+ static void include(jobject thread);
+ static bool is_excluded(jobject thread);
+ static void on_thread_start(Thread* t);
// critical
static void abort(jstring errorMsg, TRAPS);