< prev index next >

test/hotspot/jtreg/runtime/cds/dynamicArchive/HelloDynamicCustomUnload.java

Print this page




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @summary Hello World test for dynamic archive with custom loader.
  28  *          Attempt will be made to unload the custom loader during
  29  *          dump time and run time. The custom loader will be unloaded
  30  *          during dump time.
  31  * @requires vm.cds
  32  * @library /test/lib /test/hotspot/jtreg/runtime/appcds /test/hotspot/jtreg/runtime/appcds/customLoader/test-classes /runtime/testlibrary
  33  * @build HelloUnload CustomLoadee ClassUnloadCommon
  34  * @build sun.hotspot.WhiteBox
  35  * @run driver ClassFileInstaller -jar hello.jar HelloUnload ClassUnloadCommon ClassUnloadCommon$1 ClassUnloadCommon$TestFailure
  36  * @run driver ClassFileInstaller -jar hello_custom.jar CustomLoadee
  37  * @run driver ClassFileInstaller -jar WhiteBox.jar sun.hotspot.WhiteBox
  38  * @run driver HelloDynamicCustomUnload
  39  */
  40 
  41 import java.io.File;
  42 
  43 public class HelloDynamicCustomUnload extends DynamicArchiveTestBase {
  44     private static final String ARCHIVE_NAME =
  45         System.getProperty("test.classes") + File.separator + "HelloDynamicCustomUnload.jsa";
  46 
  47     public static void main(String[] args) throws Exception {
  48         runTest(HelloDynamicCustomUnload::testDefaultBase);
  49     }
  50 
  51     static void testDefaultBase() throws Exception {
  52         String topArchiveName = getNewArchiveName("HelloDynamicCustomUnload-top");




  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test
  27  * @summary Hello World test for dynamic archive with custom loader.
  28  *          Attempt will be made to unload the custom loader during
  29  *          dump time and run time. The custom loader will be unloaded
  30  *          during dump time.
  31  * @requires vm.cds
  32  * @library /test/lib /test/hotspot/jtreg/runtime/cds /test/hotspot/jtreg/runtime/cds/customLoader/test-classes /runtime/testlibrary
  33  * @build HelloUnload CustomLoadee ClassUnloadCommon
  34  * @build sun.hotspot.WhiteBox
  35  * @run driver ClassFileInstaller -jar hello.jar HelloUnload ClassUnloadCommon ClassUnloadCommon$1 ClassUnloadCommon$TestFailure
  36  * @run driver ClassFileInstaller -jar hello_custom.jar CustomLoadee
  37  * @run driver ClassFileInstaller -jar WhiteBox.jar sun.hotspot.WhiteBox
  38  * @run driver HelloDynamicCustomUnload
  39  */
  40 
  41 import java.io.File;
  42 
  43 public class HelloDynamicCustomUnload extends DynamicArchiveTestBase {
  44     private static final String ARCHIVE_NAME =
  45         System.getProperty("test.classes") + File.separator + "HelloDynamicCustomUnload.jsa";
  46 
  47     public static void main(String[] args) throws Exception {
  48         runTest(HelloDynamicCustomUnload::testDefaultBase);
  49     }
  50 
  51     static void testDefaultBase() throws Exception {
  52         String topArchiveName = getNewArchiveName("HelloDynamicCustomUnload-top");


< prev index next >