< prev index next >

test/hotspot/jtreg/serviceability/jvmti/events/MonitorContendedEntered/mcontentered01/libmcontentered01.cpp

Print this page
@@ -30,11 +30,10 @@
  extern "C" {
  
  /* ========================================================================== */
  
  /* scaffold objects */
- static JNIEnv *jni = nullptr;
  static jvmtiEnv *jvmti = nullptr;
  static jlong timeout = 0;
  
  /* test objects */
  static jthread expected_thread = nullptr;

@@ -125,11 +124,10 @@
  
  /* agent algorithm
   */
  static void JNICALL
  agentProc(jvmtiEnv *jvmti, JNIEnv *agentJNI, void *arg) {
-   jni = agentJNI;
  
  /* wait for initial sync */
    if (!agent_wait_for_sync(timeout))
      return;
  
< prev index next >