Skip to content

Commit

Permalink
Backport 93e82c01460a70f214653a558d53c1c6180ae0d3
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Sep 13, 2024
1 parent 7161e29 commit 14258ca
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -56,12 +57,14 @@
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
Expand All @@ -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
Expand Down Expand Up @@ -119,7 +120,7 @@ static Map <String,Connector.Argument> connectorArguments(LaunchingConnector con
if (optionsArg == null) {
throw new Error("Bad launching connector");
}
optionsArg.setValue(ARGUMENTS);
optionsArg.setValue(String.join(" ", Utils.getTestJavaOpts()));
return arguments;
}

Expand Down

0 comments on commit 14258ca

Please sign in to comment.