test/hotspot/jtreg/compiler/aot/fingerprint/SelfChangedCDS.java
author kvn
Fri, 20 Apr 2018 14:30:57 -0700
changeset 49847 f22c0b4caad7
parent 49367 6a532ba7d9e9
child 49931 840e26123940
permissions -rw-r--r--
8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java Summary: set AOT specific compressed oop shift value before CDS archive load Reviewed-by: iklam, jiangli
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49367
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     1
/*
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     2
 * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     4
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     7
 * published by the Free Software Foundation.
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     8
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    13
 * accompanied this code).
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    14
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    18
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    21
 * questions.
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    22
 */
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    23
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    24
/*
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    25
 * @test
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    26
 * @summary AOT methods should be swept if a super class has changed (with CDS).
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    27
 * @library /test/lib /
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    28
 * @modules java.base/jdk.internal.misc
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    29
 *          java.management
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    30
 * @requires vm.aot
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    31
 * @build compiler.aot.fingerprint.SelfChanged
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    32
 *        compiler.aot.AotCompiler
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    33
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    34
 * @run main compiler.aot.fingerprint.SelfChanged WRITE-UNMODIFIED-CLASS
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    35
 * @run driver compiler.aot.AotCompiler -libname libSelfChanged.so
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    36
 *      -class compiler.aot.fingerprint.Blah
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    37
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    38
 * @run driver ClassFileInstaller -jar SelfChangedCDS.jar compiler.aot.fingerprint.Blah
49847
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    39
 * @run main compiler.aot.fingerprint.CDSDumper SelfChangedCDS.jar SelfChangedCDS.classlist SelfChangedCDS.jsa -showversion
49367
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    40
 *      compiler.aot.fingerprint.Blah
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    41
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    42
 * @run main compiler.aot.fingerprint.CDSRunner -cp SelfChangedCDS.jar
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    43
 *      compiler.aot.fingerprint.Blah TEST-UNMODIFIED
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    44
 * @run main compiler.aot.fingerprint.CDSRunner -cp SelfChangedCDS.jar
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    45
 *      -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    46
 *      -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=SelfChangedCDS.jsa
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    47
 *      -XX:+IgnoreUnrecognizedVMOptions
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    48
 *      -Xshare:auto -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -showversion
49847
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    49
 *      -Xlog:cds -Xlog:gc+heap+coops
49367
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    50
 *      -Xlog:aot+class+fingerprint=trace -Xlog:aot+class+load=trace
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    51
 *      compiler.aot.fingerprint.Blah TEST-UNMODIFIED
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    52
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    53
 * @run main
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    54
 *      compiler.aot.fingerprint.SelfChanged WRITE-MODIFIED-CLASS
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    55
 * @run driver compiler.aot.AotCompiler -libname libSelfChanged.so
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    56
 *      -class compiler.aot.fingerprint.Blah
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    57
 *
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    58
 * @run main compiler.aot.fingerprint.CDSRunner -cp SelfChangedCDS.jar
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    59
 *      compiler.aot.fingerprint.Blah TEST-MODIFIED
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    60
 * @run main compiler.aot.fingerprint.CDSRunner -cp SelfChangedCDS.jar
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    61
 *      -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    62
 *      -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=SelfChangedCDS.jsa
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    63
 *      -XX:+IgnoreUnrecognizedVMOptions
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    64
 *      -Xshare:auto -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -showversion
49847
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    65
 *      -Xlog:cds -Xlog:gc+heap+coops
49367
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    66
 *      -Xlog:aot+class+fingerprint=trace -Xlog:aot+class+load=trace
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    67
 *      compiler.aot.fingerprint.Blah TEST-MODIFIED
49847
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    68
 *
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    69
 *
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    70
 * @run driver compiler.aot.AotCompiler -libname libSelfChanged.so
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    71
 *      -class compiler.aot.fingerprint.Blah
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    72
 *      -extraopt -Xmx512m
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    73
 *
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    74
 * @run main compiler.aot.fingerprint.CDSDumper SelfChangedCDS.jar SelfChangedCDS.classlist SelfChangedCDS.jsa -Xmx512m
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    75
 *      compiler.aot.fingerprint.Blah
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    76
 *
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    77
 * @run main compiler.aot.fingerprint.CDSRunner -Xmx512m -cp SelfChangedCDS.jar
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    78
 *      compiler.aot.fingerprint.Blah TEST-UNMODIFIED
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    79
 * @run main compiler.aot.fingerprint.CDSRunner -Xmx512m -cp SelfChangedCDS.jar
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    80
 *      -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    81
 *      -XX:+UnlockDiagnosticVMOptions -XX:SharedArchiveFile=SelfChangedCDS.jsa
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    82
 *      -XX:+IgnoreUnrecognizedVMOptions
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    83
 *      -Xshare:auto -XX:+UnlockCommercialFeatures -XX:+UseAppCDS -showversion
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    84
 *      -Xlog:cds -Xlog:gc+heap+coops
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    85
 *      -Xlog:aot+class+fingerprint=trace -Xlog:aot+class+load=trace
f22c0b4caad7 8201850: [AOT] vm crash when run test compiler/aot/fingerprint/SelfChangedCDS.java
kvn
parents: 49367
diff changeset
    86
 *      compiler.aot.fingerprint.Blah TEST-UNMODIFIED
49367
6a532ba7d9e9 8198591: compiler/aot/fingerprint tests should be moved to open
kvn
parents:
diff changeset
    87
 */