test/compiler/aot/fingerprint/SelfChanged.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/aot/fingerprint

test/compiler/aot/fingerprint/SelfChanged.java

Print this page
rev 29186 : Review changes 2


  22  */
  23 
  24 /*
  25  * @test
  26  * @summary AOT methods should be swept if a super class has changed.
  27  * @library /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  * @requires os.simpleArch == "x64" & os.arch != "aarch64" & os.family == "linux"
  31  * @build compiler.aot.fingerprint.SelfChanged
  32  *        compiler.aot.AotCompiler
  33  *
  34  * @run main
  35  *      compiler.aot.fingerprint.SelfChanged WRITE-UNMODIFIED-CLASS
  36  * @run main/othervm compiler.aot.AotCompiler -libname libSelfChanged.so
  37  *      -class compiler.aot.fingerprint.Blah
  38  *
  39  * @run main/othervm
  40  *      compiler.aot.fingerprint.SelfChanged TEST-UNMODIFIED
  41  * @run main/othervm -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
  42  *      -Xlog:aotclassfingerprint=trace -Xlog:aotclassload=trace
  43  *      compiler.aot.fingerprint.SelfChanged TEST-UNMODIFIED
  44   *
  45  * @run main
  46  *      compiler.aot.fingerprint.SelfChanged WRITE-MODIFIED-CLASS
  47  * @run main
  48  *      compiler.aot.fingerprint.SelfChanged TEST-MODIFIED
  49  * @run main/othervm -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
  50  *      -Xlog:aotclassfingerprint=trace -Xlog:aotclassload=trace
  51  *      compiler.aot.fingerprint.SelfChanged TEST-MODIFIED
  52  */
  53 
  54 package compiler.aot.fingerprint;
  55 
  56 import jdk.test.lib.Asserts;
  57 import jdk.test.lib.InMemoryJavaCompiler;
  58 
  59 import java.io.*;
  60 
  61 class Blah {
  62     volatile int z;
  63     int getX() {
  64         for (z = 0; z < 10000; z++) {
  65             if (z % 7 == 1) {
  66                 z += 2;
  67             }
  68         }
  69         return 0;
  70     }




  22  */
  23 
  24 /*
  25  * @test
  26  * @summary AOT methods should be swept if a super class has changed.
  27  * @library /test/lib /
  28  * @modules java.base/jdk.internal.misc
  29  *          java.management
  30  * @requires os.simpleArch == "x64" & os.arch != "aarch64" & os.family == "linux"
  31  * @build compiler.aot.fingerprint.SelfChanged
  32  *        compiler.aot.AotCompiler
  33  *
  34  * @run main
  35  *      compiler.aot.fingerprint.SelfChanged WRITE-UNMODIFIED-CLASS
  36  * @run main/othervm compiler.aot.AotCompiler -libname libSelfChanged.so
  37  *      -class compiler.aot.fingerprint.Blah
  38  *
  39  * @run main/othervm
  40  *      compiler.aot.fingerprint.SelfChanged TEST-UNMODIFIED
  41  * @run main/othervm -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
  42  *      -Xlog:aot+class+fingerprint=trace -Xlog:aot+class+load=trace
  43  *      compiler.aot.fingerprint.SelfChanged TEST-UNMODIFIED
  44  *
  45  * @run main
  46  *      compiler.aot.fingerprint.SelfChanged WRITE-MODIFIED-CLASS
  47  * @run main
  48  *      compiler.aot.fingerprint.SelfChanged TEST-MODIFIED
  49  * @run main/othervm -XX:+UseAOT -XX:+PrintAOT -XX:AOTLibrary=./libSelfChanged.so
  50  *      -Xlog:aot+class+fingerprint=trace -Xlog:aot+class+load=trace
  51  *      compiler.aot.fingerprint.SelfChanged TEST-MODIFIED
  52  */
  53 
  54 package compiler.aot.fingerprint;
  55 
  56 import jdk.test.lib.Asserts;
  57 import jdk.test.lib.InMemoryJavaCompiler;
  58 
  59 import java.io.*;
  60 
  61 class Blah {
  62     volatile int z;
  63     int getX() {
  64         for (z = 0; z < 10000; z++) {
  65             if (z % 7 == 1) {
  66                 z += 2;
  67             }
  68         }
  69         return 0;
  70     }


test/compiler/aot/fingerprint/SelfChanged.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File