8314824: Fix serviceability/jvmti/8036666/GetObjectLockCount.java to use vm flags
Reviewed-by: sspitsyn, kevinw
This commit is contained in:
parent
7daae1fb42
commit
93e82c0146
@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2014 SAP SE. All rights reserved.
|
||||
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -56,12 +57,14 @@ import com.sun.jdi.request.BreakpointRequest;
|
||||
import com.sun.jdi.request.ClassPrepareRequest;
|
||||
import com.sun.jdi.request.EventRequestManager;
|
||||
|
||||
import jdk.test.lib.Utils;
|
||||
|
||||
/*
|
||||
* @test GetObjectLockCount.java
|
||||
* @bug 8036666
|
||||
* @summary verify jvm returns correct lock recursion count
|
||||
* @requires vm.jvmti
|
||||
* @library /test/lib
|
||||
* @run compile -g RecursiveObjectLock.java
|
||||
* @run main/othervm GetObjectLockCount
|
||||
* @author axel.siebenborn@sap.com
|
||||
@ -71,8 +74,6 @@ public class GetObjectLockCount {
|
||||
|
||||
public static final String CLASS_NAME = "RecursiveObjectLock";
|
||||
public static final String METHOD_NAME = "breakpoint1";
|
||||
public static final String ARGUMENTS = "";
|
||||
|
||||
|
||||
/**
|
||||
* Find a com.sun.jdi.CommandLineLaunch connector
|
||||
@ -119,7 +120,7 @@ public class GetObjectLockCount {
|
||||
if (optionsArg == null) {
|
||||
throw new Error("Bad launching connector");
|
||||
}
|
||||
optionsArg.setValue(ARGUMENTS);
|
||||
optionsArg.setValue(String.join(" ", Utils.getTestJavaOpts()));
|
||||
return arguments;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user