< prev index next >

test/serviceability/jvmti/GetObjectSizeOverflow.java

Print this page

        

*** 19,42 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ import java.io.PrintWriter; ! import jdk.test.lib.*; /* * Test to verify GetObjectSize does not overflow on a 600M element int[] * * @test * @bug 8027230 ! * @library /testlibrary * @modules java.base/jdk.internal.misc * java.compiler * java.instrument * java.management * jdk.jvmstat/sun.jvmstat.monitor ! * @build ClassFileInstaller jdk.test.lib.* GetObjectSizeOverflowAgent * @run main ClassFileInstaller GetObjectSizeOverflowAgent * @run main GetObjectSizeOverflow */ public class GetObjectSizeOverflow { public static void main(String[] args) throws Exception { --- 19,45 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ import java.io.PrintWriter; ! import jdk.test.lib.JDKToolFinder; ! import jdk.test.lib.Platform; ! import jdk.test.lib.process.OutputAnalyzer; ! import jdk.test.lib.process.ProcessTools; /* * Test to verify GetObjectSize does not overflow on a 600M element int[] * * @test * @bug 8027230 ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.compiler * java.instrument * java.management * jdk.jvmstat/sun.jvmstat.monitor ! * @build GetObjectSizeOverflowAgent * @run main ClassFileInstaller GetObjectSizeOverflowAgent * @run main GetObjectSizeOverflow */ public class GetObjectSizeOverflow { public static void main(String[] args) throws Exception {
< prev index next >