test/runtime/ClassUnload/UnloadTest.java

Print this page
rev 6415 : [mq]: 8011397.WhiteBoxPermission

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 25,36 **** * @test UnloadTest * @library /runtime/testlibrary /testlibrary /testlibrary/whitebox * @library classes * @build ClassUnloadCommon test.Empty * @build UnloadTest ! * @run main ClassFileInstaller sun.hotspot.WhiteBox ! * @run main/othervm -Xbootclasspath/a:. -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI UnloadTest */ import sun.hotspot.WhiteBox; /** * Test that verifies that classes are unloaded when they are no longer reachable. --- 25,35 ---- * @test UnloadTest * @library /runtime/testlibrary /testlibrary /testlibrary/whitebox * @library classes * @build ClassUnloadCommon test.Empty * @build UnloadTest ! * @run main/othervm/bootclasspath -Xmn8m -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI UnloadTest */ import sun.hotspot.WhiteBox; /** * Test that verifies that classes are unloaded when they are no longer reachable.