equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2013, 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. |
23 |
23 |
24 /* |
24 /* |
25 * @test KeepAliveClassLoader |
25 * @test KeepAliveClassLoader |
26 * @summary This test case uses a java.lang.ClassLoader instance to keep a class alive. |
26 * @summary This test case uses a java.lang.ClassLoader instance to keep a class alive. |
27 * @modules java.base/jdk.internal.misc |
27 * @modules java.base/jdk.internal.misc |
28 * @library /testlibrary /test/lib /runtime/testlibrary |
28 * @library /test/lib /runtime/testlibrary |
29 * @library classes |
29 * @library classes |
30 * @build KeepAliveClassLoader test.Empty |
30 * @build sun.hotspot.WhiteBox test.Empty |
31 * @build ClassUnloadCommon |
|
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
31 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
33 * sun.hotspot.WhiteBox$WhiteBoxPermission |
32 * sun.hotspot.WhiteBox$WhiteBoxPermission |
34 * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClassLoader |
33 * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveClassLoader |
35 */ |
34 */ |
36 |
35 |