< prev index next >

test/hotspot/jtreg/runtime/ErrorHandling/SafeFetchInErrorHandlingTest.java

Print this page
rev 59076 : [mq]: 8243945


  21  * questions.
  22  */
  23 
  24 import java.io.BufferedReader;
  25 import java.io.File;
  26 import java.io.FileInputStream;
  27 import java.io.InputStreamReader;
  28 import java.util.regex.Pattern;
  29 
  30 import jdk.test.lib.process.OutputAnalyzer;
  31 import jdk.test.lib.Platform;
  32 import jdk.test.lib.process.ProcessTools;
  33 
  34 /*
  35  * @test
  36  * @bug 8074552
  37  * @summary SafeFetch32 and SafeFetchN do not work in error handling
  38  * @modules java.base/jdk.internal.misc
  39  * @library /test/lib
  40  * @author Thomas Stuefe (SAP)

  41  */
  42 
  43 public class SafeFetchInErrorHandlingTest {
  44 
  45 
  46   public static void main(String[] args) throws Exception {
  47 
  48     if (!Platform.isDebugBuild() || Platform.isZero()) {
  49       return;
  50     }
  51 
  52     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
  53         "-XX:+UnlockDiagnosticVMOptions",
  54         "-Xmx100M",
  55         "-XX:ErrorHandlerTest=14",
  56         "-XX:+TestSafeFetchInErrorHandler",
  57         "-XX:-CreateCoredumpOnCrash",
  58         "-version");
  59 
  60     OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());




  21  * questions.
  22  */
  23 
  24 import java.io.BufferedReader;
  25 import java.io.File;
  26 import java.io.FileInputStream;
  27 import java.io.InputStreamReader;
  28 import java.util.regex.Pattern;
  29 
  30 import jdk.test.lib.process.OutputAnalyzer;
  31 import jdk.test.lib.Platform;
  32 import jdk.test.lib.process.ProcessTools;
  33 
  34 /*
  35  * @test
  36  * @bug 8074552
  37  * @summary SafeFetch32 and SafeFetchN do not work in error handling
  38  * @modules java.base/jdk.internal.misc
  39  * @library /test/lib
  40  * @author Thomas Stuefe (SAP)
  41  * @run driver SafeFetchInErrorHandlingTest
  42  */
  43 
  44 public class SafeFetchInErrorHandlingTest {
  45 
  46 
  47   public static void main(String[] args) throws Exception {
  48 
  49     if (!Platform.isDebugBuild() || Platform.isZero()) {
  50       return;
  51     }
  52 
  53     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
  54         "-XX:+UnlockDiagnosticVMOptions",
  55         "-Xmx100M",
  56         "-XX:ErrorHandlerTest=14",
  57         "-XX:+TestSafeFetchInErrorHandler",
  58         "-XX:-CreateCoredumpOnCrash",
  59         "-version");
  60 
  61     OutputAnalyzer output_detail = new OutputAnalyzer(pb.start());


< prev index next >