23
24
25
26 /*
27 * @test JsrRewriting
28 * @summary JSR (jump local subroutine)
29 * rewriting can overflow memory address size variables
30 * @bug 7020373
31 * @bug 7055247
32 * @bug 7053586
33 * @bug 7185550
34 * @bug 7149464
35 * @key cte_test
36 * @library /testlibrary
37 * @modules java.base/sun.misc
38 * java.desktop
39 * java.management
40 * @run main JsrRewriting
41 */
42
43 import com.oracle.java.testlibrary.*;
44 import java.io.File;
45
46 public class JsrRewriting {
47
48 public static void main(String[] args) throws Exception {
49
50 // ======= Configure the test
51 String jarFile = System.getProperty("test.src") +
52 File.separator + "JsrRewritingTestCase.jar";
53 String className = "OOMCrashClass4000_1";
54
55 // limit is 768MB in native words
56 int mallocMaxTestWords = (1024 * 1024 * 768 / 4);
57 if (Platform.is64bit())
58 mallocMaxTestWords = (mallocMaxTestWords / 2);
59
60 // ======= extract the test class
61 ProcessBuilder pb = new ProcessBuilder(new String[] {
62 JDKToolFinder.getJDKTool("jar"),
63 "xvf", jarFile } );
|
23
24
25
26 /*
27 * @test JsrRewriting
28 * @summary JSR (jump local subroutine)
29 * rewriting can overflow memory address size variables
30 * @bug 7020373
31 * @bug 7055247
32 * @bug 7053586
33 * @bug 7185550
34 * @bug 7149464
35 * @key cte_test
36 * @library /testlibrary
37 * @modules java.base/sun.misc
38 * java.desktop
39 * java.management
40 * @run main JsrRewriting
41 */
42
43 import jdk.test.lib.*;
44 import java.io.File;
45
46 public class JsrRewriting {
47
48 public static void main(String[] args) throws Exception {
49
50 // ======= Configure the test
51 String jarFile = System.getProperty("test.src") +
52 File.separator + "JsrRewritingTestCase.jar";
53 String className = "OOMCrashClass4000_1";
54
55 // limit is 768MB in native words
56 int mallocMaxTestWords = (1024 * 1024 * 768 / 4);
57 if (Platform.is64bit())
58 mallocMaxTestWords = (mallocMaxTestWords / 2);
59
60 // ======= extract the test class
61 ProcessBuilder pb = new ProcessBuilder(new String[] {
62 JDKToolFinder.getJDKTool("jar"),
63 "xvf", jarFile } );
|