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