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