< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/NestHostOldInf.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2022, 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) 2022, 2023, 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.

*** 47,11 ***
          String archiveName = namePrefix + ".jsa";
  
          boolean dynamicMode = CDSTestUtils.DYNAMIC_DUMP;
  
          // create archive with class list
!         OutputAnalyzer output = TestCommon.dump(appJar, appClasses, "-Xlog:class+load,cds=debug,verification=trace");
          TestCommon.checkExecReturn(output, 0,
                                     dynamicMode ? true : false,
                                     "Skipping OldInf: Old class has been linked",
                                     "Skipping ChildOldInf: Old class has been linked");
  
--- 47,12 ---
          String archiveName = namePrefix + ".jsa";
  
          boolean dynamicMode = CDSTestUtils.DYNAMIC_DUMP;
  
          // create archive with class list
!         OutputAnalyzer output = TestCommon.dump(appJar, appClasses, "-Xlog:class+load,cds=debug,verification=trace",
+                                                 "-XX:-PreloadSharedClasses");
          TestCommon.checkExecReturn(output, 0,
                                     dynamicMode ? true : false,
                                     "Skipping OldInf: Old class has been linked",
                                     "Skipping ChildOldInf: Old class has been linked");
  
< prev index next >