test/hotspot/jtreg/runtime/appcds/DumpClassList.java
changeset 49931 840e26123940
parent 48469 7312ae4465d6
child 51990 6003e034cdd8
equal deleted inserted replaced
49930:3aaaa5370999 49931:840e26123940
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    90                                    "skip writing class java/lang/NewClass") // skip classes outside of jrt image
    90                                    "skip writing class java/lang/NewClass") // skip classes outside of jrt image
    91             .shouldNotContain("skip writing class boot/append/Foo");        // but classes on -Xbootclasspath/a should not be skipped
    91             .shouldNotContain("skip writing class boot/append/Foo");        // but classes on -Xbootclasspath/a should not be skipped
    92 
    92 
    93         output = TestCommon.createArchive(appJar, appClass,
    93         output = TestCommon.createArchive(appJar, appClass,
    94                                           "-Xbootclasspath/a:" + appendJar,
    94                                           "-Xbootclasspath/a:" + appendJar,
    95                                           "-XX:+UnlockDiagnosticVMOptions",
       
    96                                           "-Xlog:class+load",
    95                                           "-Xlog:class+load",
    97                                           "-XX:SharedClassListFile=" + classList);
    96                                           "-XX:SharedClassListFile=" + classList);
    98         TestCommon.checkDump(output)
    97         TestCommon.checkDump(output)
    99             .shouldNotContain("Preload Warning: Cannot find java/lang/invoke/LambdaForm")
    98             .shouldNotContain("Preload Warning: Cannot find java/lang/invoke/LambdaForm")
   100             .shouldNotContain("Preload Warning: Cannot find boot/append/Foo")
    99             .shouldNotContain("Preload Warning: Cannot find boot/append/Foo")