< prev index next >

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

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

*** 125,11 ***
  
  /* 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;
  
--- 124,10 ---
< prev index next >