8178415: remove ProcessTools::getPlatformSpecificVMArgs from testlibary
Reviewed-by: dholmes
This commit is contained in:
parent
a167d496f1
commit
a9374cc0bc
@ -24,7 +24,6 @@
|
|||||||
package jdk.testlibrary;
|
package jdk.testlibrary;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,7 +59,6 @@ public class JDKToolLauncher {
|
|||||||
} else {
|
} else {
|
||||||
executable = JDKToolFinder.getTestJDKTool(tool);
|
executable = JDKToolFinder.getTestJDKTool(tool);
|
||||||
}
|
}
|
||||||
vmArgs.addAll(Arrays.asList(ProcessTools.getPlatformSpecificVMArgs()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -259,23 +259,6 @@ public final class ProcessTools {
|
|||||||
return ProcessHandle.current().getPid();
|
return ProcessHandle.current().getPid();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get platform specific VM arguments (e.g. -d64 on 64bit Solaris)
|
|
||||||
*
|
|
||||||
* @return String[] with platform specific arguments, empty if there are
|
|
||||||
* none
|
|
||||||
*/
|
|
||||||
public static String[] getPlatformSpecificVMArgs() {
|
|
||||||
String osName = System.getProperty("os.name");
|
|
||||||
String dataModel = System.getProperty("sun.arch.data.model");
|
|
||||||
|
|
||||||
if (osName.equals("SunOS") && dataModel.equals("64")) {
|
|
||||||
return new String[] { "-d64" };
|
|
||||||
}
|
|
||||||
|
|
||||||
return new String[] {};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create ProcessBuilder using the java launcher from the jdk to be tested,
|
* Create ProcessBuilder using the java launcher from the jdk to be tested,
|
||||||
* and with any platform specific arguments prepended.
|
* and with any platform specific arguments prepended.
|
||||||
@ -301,7 +284,6 @@ public final class ProcessTools {
|
|||||||
|
|
||||||
ArrayList<String> args = new ArrayList<>();
|
ArrayList<String> args = new ArrayList<>();
|
||||||
args.add(javapath);
|
args.add(javapath);
|
||||||
Collections.addAll(args, getPlatformSpecificVMArgs());
|
|
||||||
|
|
||||||
if (addTestVmAndJavaOptions) {
|
if (addTestVmAndJavaOptions) {
|
||||||
// -cp is needed to make sure the same classpath is used whether the test is
|
// -cp is needed to make sure the same classpath is used whether the test is
|
||||||
|
Loading…
Reference in New Issue
Block a user