8064923: [TESTBUG] jps doesn't display anything on embedded platforms and it causes some tests to fail

Reviewed-by: egahlin, jbachorik
This commit is contained in:
Katja Kantserova 2015-03-19 09:01:44 +01:00
parent 20be94ae55
commit a4da3681de

View File

@ -151,6 +151,7 @@ public final class JpsHelper {
*/
public static OutputAnalyzer jps(List<String> vmArgs, List<String> toolArgs) throws Exception {
JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("jps");
launcher.addVMArg("-XX:+UsePerfData");
if (vmArgs != null) {
for (String vmArg : vmArgs) {
launcher.addVMArg(vmArg);