equal
deleted
inserted
replaced
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"); |