201 ArrayList<Pattern> hsErrPatternList = new ArrayList<>();
202 hsErrPatternList.add(Pattern.compile(".*(SIGBUS|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*"));
203
204 hsErrPatternList.add(Pattern.compile(".*siginfo:.*" + expectedCrashAddressString + ".*"));
205 hsErrPatternList.add(Pattern.compile(".*" + expectedCrashAddressString + ".*points into nKlass protection zone.*"));
206 Pattern[] hsErrPattern = hsErrPatternList.toArray(new Pattern[0]);
207 HsErrFileUtils.checkHsErrFileContent(hsErrFile, hsErrPattern, true);
208 }
209
210 enum Argument { runwb, no_coh_no_cds, no_coh_cds, coh_no_cds, coh_cds };
211 public static void main(String[] args) throws Exception {
212 if (args.length != 1) {
213 throw new RuntimeException("Expecting one argument");
214 }
215 Argument arg = Argument.valueOf(args[0]);
216 System.out.println(arg);
217 switch (arg) {
218 case runwb -> WhiteBox.getWhiteBox().decodeNKlassAndAccessKlass(0);
219 case no_coh_no_cds -> run_test(false, false);
220 case no_coh_cds -> run_test(false, true);
221 case coh_no_cds -> run_test(true, false);
222 case coh_cds -> run_test(true, true);
223 }
224 }
225 }
|
201 ArrayList<Pattern> hsErrPatternList = new ArrayList<>();
202 hsErrPatternList.add(Pattern.compile(".*(SIGBUS|SIGSEGV|EXCEPTION_ACCESS_VIOLATION).*"));
203
204 hsErrPatternList.add(Pattern.compile(".*siginfo:.*" + expectedCrashAddressString + ".*"));
205 hsErrPatternList.add(Pattern.compile(".*" + expectedCrashAddressString + ".*points into nKlass protection zone.*"));
206 Pattern[] hsErrPattern = hsErrPatternList.toArray(new Pattern[0]);
207 HsErrFileUtils.checkHsErrFileContent(hsErrFile, hsErrPattern, true);
208 }
209
210 enum Argument { runwb, no_coh_no_cds, no_coh_cds, coh_no_cds, coh_cds };
211 public static void main(String[] args) throws Exception {
212 if (args.length != 1) {
213 throw new RuntimeException("Expecting one argument");
214 }
215 Argument arg = Argument.valueOf(args[0]);
216 System.out.println(arg);
217 switch (arg) {
218 case runwb -> WhiteBox.getWhiteBox().decodeNKlassAndAccessKlass(0);
219 case no_coh_no_cds -> run_test(false, false);
220 case no_coh_cds -> run_test(false, true);
221 // TODO 8348568 Re-enable
222 // case coh_no_cds -> run_test(true, false);
223 // case coh_cds -> run_test(true, true);
224 }
225 }
226 }
|