equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
26 * @test Testlibadimalloc.java |
26 * @test Testlibadimalloc.java |
27 * @bug 8141445 |
27 * @bug 8141445 |
28 * @summary make sure the Solaris Sparc M7 libadimalloc.so library generates SIGSEGV's on buffer overflow |
28 * @summary make sure the Solaris Sparc M7 libadimalloc.so library generates SIGSEGV's on buffer overflow |
29 * @requires (os.family == "solaris" & os.arch == "sparcv9") |
29 * @requires (os.family == "solaris" & os.arch == "sparcv9") |
30 * @modules java.base/jdk.internal.misc |
30 * @modules java.base/jdk.internal.misc |
31 * @library /testlibrary |
31 * @library /test/lib |
32 * @build jdk.test.lib.* |
|
33 * @compile SEGVOverflow.java |
32 * @compile SEGVOverflow.java |
34 * @run driver Testlibadimalloc |
33 * @run driver Testlibadimalloc |
35 */ |
34 */ |
36 |
35 |
37 import java.io.*; |
36 import java.io.*; |
38 import java.nio.file.*; |
37 import java.nio.file.*; |
39 import java.util.*; |
38 import java.util.*; |
40 import jdk.test.lib.ProcessTools; |
39 import jdk.test.lib.process.ProcessTools; |
41 |
40 |
42 public class Testlibadimalloc { |
41 public class Testlibadimalloc { |
43 |
42 |
44 // Expected return value when java program cores |
43 // Expected return value when java program cores |
45 static final int EXPECTED_RET_VAL = 6; |
44 static final int EXPECTED_RET_VAL = 6; |