18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.jfr.event.compiler;
27
28 import java.util.List;
29
30 import jdk.jfr.Recording;
31 import jdk.jfr.consumer.RecordedEvent;
32 import jdk.test.lib.Asserts;
33 import jdk.test.lib.jfr.EventNames;
34 import jdk.test.lib.jfr.Events;
35 import sun.hotspot.WhiteBox;
36 import sun.hotspot.code.BlobType;
37
38 /*
39 * @test TestCodeCacheFull
40 *
41 * @library /test/lib
42 * @modules jdk.jfr
43 * jdk.management.jfr
44 * @build sun.hotspot.WhiteBox
45 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
46 *
47 * @run main/othervm -Xbootclasspath/a:.
48 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
49 * -XX:+SegmentedCodeCache -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
50 * @run main/othervm -Xbootclasspath/a:.
51 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
52 * -XX:-SegmentedCodeCache jdk.jfr.event.compiler.TestCodeCacheFull
53 */
54 public class TestCodeCacheFull {
55
56 public static void main(String[] args) throws Exception {
57 for (BlobType btype : BlobType.getAvailable()) {
58 testWithBlobType(btype, calculateAvailableSize(btype));
59 }
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package jdk.jfr.event.compiler;
27
28 import java.util.List;
29
30 import jdk.jfr.Recording;
31 import jdk.jfr.consumer.RecordedEvent;
32 import jdk.test.lib.Asserts;
33 import jdk.test.lib.jfr.EventNames;
34 import jdk.test.lib.jfr.Events;
35 import sun.hotspot.WhiteBox;
36 import sun.hotspot.code.BlobType;
37
38 /**
39 * @test TestCodeCacheFull
40 * @requires vm.hasJFR
41 *
42 * @library /test/lib
43 * @modules jdk.jfr
44 * jdk.management.jfr
45 * @build sun.hotspot.WhiteBox
46 * @run main ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
47 *
48 * @run main/othervm -Xbootclasspath/a:.
49 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
50 * -XX:+SegmentedCodeCache -XX:-UseLargePages jdk.jfr.event.compiler.TestCodeCacheFull
51 * @run main/othervm -Xbootclasspath/a:.
52 * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
53 * -XX:-SegmentedCodeCache jdk.jfr.event.compiler.TestCodeCacheFull
54 */
55 public class TestCodeCacheFull {
56
57 public static void main(String[] args) throws Exception {
58 for (BlobType btype : BlobType.getAvailable()) {
59 testWithBlobType(btype, calculateAvailableSize(btype));
60 }
|