--- old/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/IncompatibleOptions.java 2020-07-22 15:48:48.551379117 -0700 +++ new/test/hotspot/jtreg/runtime/cds/appcds/sharedStrings/IncompatibleOptions.java 2020-07-22 15:48:48.199365866 -0700 @@ -124,11 +124,10 @@ testExec(9, "-XX:+UseG1GC", "-XX:ObjectAlignmentInBytes=16", OBJ_ALIGNMENT_MISMATCH, true); - // See JDK-8081416 - Oops encoding mismatch with shared strings - // produces unclear or incorrect warning - // Correct the test case once the above is fixed - // @ignore JDK-8081416 - for tracking purposes - // for now, run test as is until the proper behavior is determined + // Max heap size for compressed oops is around 31G. UseCompressedOops is turned on + // by default when heap size is under 31G, but will be turned off when heap size + // is greater than that. This test leads to inconsistency of UseCompressedOops at dump + // time and runtime. testDump(10, "-XX:+UseG1GC", "-Xmx1g", null, false); testExec(10, "-XX:+UseG1GC", "-Xmx32g", null, true);