test/hotspot/jtreg/runtime/appcds/HelloExtTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File open Cdiff test/hotspot/jtreg/runtime/appcds/HelloExtTest.java

test/hotspot/jtreg/runtime/appcds/HelloExtTest.java

Print this page

        

*** 49,73 **** JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox"); String whiteBoxJar = TestCommon.getTestJar("WhiteBox.jar"); String bootClassPath = "-Xbootclasspath/a:" + whiteBoxJar; TestCommon.dump(appJar, ! TestCommon.list("org/omg/CORBA/ORB", "[Ljava/lang/Comparable;"), ! bootClassPath, "-verbose:class", "--add-modules", "java.corba"); String prefix = ".class.load. "; String class_pattern = ".*LambdaForm[$]MH[/][0123456789].*"; String suffix = ".*source: shared objects file.*"; String pattern = prefix + class_pattern + suffix; TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", ! "-cp", appJar, bootClassPath, "-verbose:class", "--add-modules", "java.corba", "HelloExt") .assertNormalExit(output -> output.shouldNotMatch(pattern)); TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", "-cp", appJar, bootClassPath, "-verbose:class", "-XX:+PrintSharedArchiveAndExit", "-XX:+PrintSharedDictionary", ! "--add-modules", "java.corba", "HelloExt") .assertNormalExit(output -> output.shouldNotMatch(class_pattern)); } } --- 49,73 ---- JarBuilder.build(true, "WhiteBox", "sun/hotspot/WhiteBox"); String whiteBoxJar = TestCommon.getTestJar("WhiteBox.jar"); String bootClassPath = "-Xbootclasspath/a:" + whiteBoxJar; TestCommon.dump(appJar, ! TestCommon.list("javax/annotation/processing/FilerException", "[Ljava/lang/Comparable;"), ! bootClassPath, "-verbose:class"); String prefix = ".class.load. "; String class_pattern = ".*LambdaForm[$]MH[/][0123456789].*"; String suffix = ".*source: shared objects file.*"; String pattern = prefix + class_pattern + suffix; TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", ! "-cp", appJar, bootClassPath, "-verbose:class", "HelloExt") .assertNormalExit(output -> output.shouldNotMatch(pattern)); TestCommon.run("-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI", "-cp", appJar, bootClassPath, "-verbose:class", "-XX:+PrintSharedArchiveAndExit", "-XX:+PrintSharedDictionary", ! "HelloExt") .assertNormalExit(output -> output.shouldNotMatch(class_pattern)); } }
test/hotspot/jtreg/runtime/appcds/HelloExtTest.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File