< prev index next > test/hotspot/jtreg/serviceability/jvmti/events/MonitorContendedEntered/mcontentered01/libmcontentered01.cpp
Print this page
extern "C" {
/* ========================================================================== */
/* scaffold objects */
- static JNIEnv *jni = nullptr;
static jvmtiEnv *jvmti = nullptr;
static jlong timeout = 0;
/* test objects */
static jthread expected_thread = nullptr;
/* 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 >