equal
deleted
inserted
replaced
32 */ |
32 */ |
33 |
33 |
34 import jdk.test.lib.process.ProcessTools; |
34 import jdk.test.lib.process.ProcessTools; |
35 import jdk.test.lib.process.OutputAnalyzer; |
35 import jdk.test.lib.process.OutputAnalyzer; |
36 import jdk.test.lib.Platform; |
36 import jdk.test.lib.Platform; |
37 import jdk.test.lib.unsafe.UnsafeHelper; |
|
38 import jdk.internal.misc.Unsafe; |
37 import jdk.internal.misc.Unsafe; |
39 |
38 |
40 public class CreateCoredumpOnCrash { |
39 public class CreateCoredumpOnCrash { |
41 private static class Crasher { |
40 private static class Crasher { |
42 public static void main(String[] args) { |
41 public static void main(String[] args) { |
43 UnsafeHelper.getUnsafe().putInt(0L, 0); |
42 Unsafe.getUnsafe().putInt(0L, 0); |
44 } |
43 } |
45 } |
44 } |
46 |
45 |
47 public static void main(String[] args) throws Exception { |
46 public static void main(String[] args) throws Exception { |
48 runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped"); |
47 runTest("-XX:-CreateCoredumpOnCrash").shouldContain("CreateCoredumpOnCrash turned off, no core file dumped"); |