< prev index next >

test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2020, 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.

@@ -158,10 +158,11 @@
                  "--add-modules",
                  "java.base,jdk.httpserver",
                  "--add-exports",
                  "java.base/jdk.internal.misc=ALL-UNNAMED",
                  "-Xlog:cds=debug,class+load,class+loader+constraints",
+                 "-XX:-PreloadSharedClasses",
              };
  
              if (useCustomLoader) {
                  if (useZGC) {
                      String zGenerational = "-XX:" + (useZGenerational ? "+" : "-") + "ZGenerational";
< prev index next >