10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package compiler.compilercontrol.parser; 25 26 import compiler.compilercontrol.share.JSONFile; 27 import compiler.compilercontrol.share.method.MethodDescriptor; 28 import compiler.compilercontrol.share.scenario.DirectiveWriter; 29 import compiler.compilercontrol.share.scenario.Scenario; 30 import jdk.test.lib.OutputAnalyzer; 31 import jdk.test.lib.ProcessTools; 32 import jdk.test.lib.Utils; 33 34 import java.util.EnumSet; 35 import java.util.List; 36 import java.util.Random; 37 import java.util.stream.Collectors; 38 39 /** 40 * Creates a huge directive file 41 */ 42 public final class HugeDirectiveUtil { 43 private static final Random RANDOM = Utils.getRandomInstance(); 44 protected static final String EXPECTED_ERROR_STRING = "Parsing of compiler " 45 + "directives failed"; 46 47 private HugeDirectiveUtil() { } 48 49 /** 50 * Creates huge file with specified amount of directives 51 * | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package compiler.compilercontrol.parser; 25 26 import compiler.compilercontrol.share.JSONFile; 27 import compiler.compilercontrol.share.method.MethodDescriptor; 28 import compiler.compilercontrol.share.scenario.DirectiveWriter; 29 import compiler.compilercontrol.share.scenario.Scenario; 30 import jdk.test.lib.process.OutputAnalyzer; 31 import jdk.test.lib.process.ProcessTools; 32 import jdk.test.lib.Utils; 33 34 import java.util.EnumSet; 35 import java.util.List; 36 import java.util.Random; 37 import java.util.stream.Collectors; 38 39 /** 40 * Creates a huge directive file 41 */ 42 public final class HugeDirectiveUtil { 43 private static final Random RANDOM = Utils.getRandomInstance(); 44 protected static final String EXPECTED_ERROR_STRING = "Parsing of compiler " 45 + "directives failed"; 46 47 private HugeDirectiveUtil() { } 48 49 /** 50 * Creates huge file with specified amount of directives 51 * |