--- old/test/compiler/compilercontrol/jcmd/StressAddSequentiallyTest.java 2016-02-19 19:51:45.000000000 +0300 +++ new/test/compiler/compilercontrol/jcmd/StressAddSequentiallyTest.java 2016-02-19 19:51:45.000000000 +0300 @@ -32,24 +32,21 @@ * compiler.compilercontrol.share.actions.* * @run main ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission - * @run main/othervm/timeout=300 compiler.compilercontrol.jcmd.StressAddSequentiallyTest + * @run main/othervm/timeout=300 -Xmixed compiler.compilercontrol.jcmd.StressAddSequentiallyTest */ package compiler.compilercontrol.jcmd; import jdk.test.lib.dcmd.PidJcmdExecutor; -import java.util.List; - public class StressAddSequentiallyTest extends StressAddJcmdBase { public static void main(String[] args) { new StressAddSequentiallyTest().test(); } @Override - protected boolean makeConnection(int pid, List commands) { - commands.forEach(command -> new PidJcmdExecutor(String.valueOf(pid)) - .execute(command)); + protected boolean makeConnection(int pid) { + new PidJcmdExecutor(String.valueOf(pid)).execute(nextCommand()); return true; } }