test/runtime/ClassUnload/KeepAliveObject.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/runtime/ClassUnload/KeepAliveObject.java Tue Dec 9 15:13:22 2014
--- new/test/runtime/ClassUnload/KeepAliveObject.java Tue Dec 9 15:13:22 2014
*** 22,41 ****
--- 22,41 ----
*/
/*
* @test KeepAliveObject
* @summary This test case uses a class instance to keep the class alive.
! * @library /testlibrary /testlibrary/whitebox /runtime/testlibrary
! * @library /testlibrary /../../test/lib /runtime/testlibrary
* @library classes
* @build KeepAliveObject test.Empty
* @build ClassUnloadCommon
! * @run main ClassFileInstaller sun.hotspot.WhiteBox
! * sun.hotspot.WhiteBox$WhiteBoxPermission
! * @run main ClassFileInstaller jdk.testlib.WhiteBox
! * jdk.testlib.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI KeepAliveObject
*/
! import sun.hotspot.WhiteBox;
! import jdk.testlib.WhiteBox;
/**
* Test that verifies that classes are not unloaded when specific types of references are kept to them.
*/
public class KeepAliveObject {
test/runtime/ClassUnload/KeepAliveObject.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File