8153992: Some hotspot tests fail on compact2 due to an unnecessary test library dependency

Removing unnecessary dependency on java.management from the ProcessTool.getProcessId()

Reviewed-by: mchung
This commit is contained in:
Alexander Kulyakhtin 2016-04-26 13:22:32 +03:00
parent 1601aea438
commit 7cf6a15162
29 changed files with 33 additions and 36 deletions

View file

@ -36,7 +36,7 @@ import jdk.test.lib.*;
public class DumpSymbolAndStringTable {
public static void main(String[] args) throws Exception {
// Grab my own PID
String pid = Integer.toString(ProcessTools.getProcessId());
String pid = Long.toString(ProcessTools.getProcessId());
ProcessBuilder pb = new ProcessBuilder();
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.symboltable", "-verbose"});