hotspot/test/runtime/ErrorHandling/CreateCoredumpOnCrash.java
changeset 31977 a737c35bf8f6
parent 31789 c8c579616fc8
child 36851 03e2f4d0a421
equal deleted inserted replaced
31976:da45f85bf4e1 31977:a737c35bf8f6
    36 import sun.misc.Unsafe;
    36 import sun.misc.Unsafe;
    37 
    37 
    38 public class CreateCoredumpOnCrash {
    38 public class CreateCoredumpOnCrash {
    39     private static class Crasher {
    39     private static class Crasher {
    40         public static void main(String[] args) {
    40         public static void main(String[] args) {
    41             Utils.getUnsafe().getInt(0);
    41             Utils.getUnsafe().putInt(0L, 0);
    42         }
    42         }
    43     }
    43     }
    44 
    44 
    45     public static void main(String[] args) throws Exception {
    45     public static void main(String[] args) throws Exception {
    46         runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");
    46         runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped");