110 } |
110 } |
111 |
111 |
112 // incompatible GCs |
112 // incompatible GCs |
113 testDump(2, "-XX:+UseParallelGC", "", GC_WARNING, false); |
113 testDump(2, "-XX:+UseParallelGC", "", GC_WARNING, false); |
114 testDump(3, "-XX:+UseSerialGC", "", GC_WARNING, false); |
114 testDump(3, "-XX:+UseSerialGC", "", GC_WARNING, false); |
115 if (!Compiler.isGraalEnabled()) { // Graal does not support CMS |
|
116 testDump(4, "-XX:+UseConcMarkSweepGC", "", GC_WARNING, false); |
|
117 } |
|
118 |
115 |
119 // ======= archive with compressed oops, run w/o |
116 // ======= archive with compressed oops, run w/o |
120 testDump(5, "-XX:+UseG1GC", "-XX:+UseCompressedOops", null, false); |
117 testDump(5, "-XX:+UseG1GC", "-XX:+UseCompressedOops", null, false); |
121 testExec(5, "-XX:+UseG1GC", "-XX:-UseCompressedOops", |
118 testExec(5, "-XX:+UseG1GC", "-XX:-UseCompressedOops", |
122 COOPS_EXEC_WARNING, true); |
119 COOPS_EXEC_WARNING, true); |
123 |
120 |
124 // NOTE: No warning is displayed, by design |
121 // NOTE: No warning is displayed, by design |
125 // Still run, to ensure no crash or exception |
122 // Still run, to ensure no crash or exception |
126 testExec(6, "-XX:+UseParallelGC", "", "", false); |
123 testExec(6, "-XX:+UseParallelGC", "", "", false); |
127 testExec(7, "-XX:+UseSerialGC", "", "", false); |
124 testExec(7, "-XX:+UseSerialGC", "", "", false); |
128 if (!Compiler.isGraalEnabled()) { // Graal does not support CMS |
|
129 testExec(8, "-XX:+UseConcMarkSweepGC", "", "", false); |
|
130 } |
|
131 |
125 |
132 // Test various oops encodings, by varying ObjectAlignmentInBytes and heap sizes |
126 // Test various oops encodings, by varying ObjectAlignmentInBytes and heap sizes |
133 testDump(9, "-XX:+UseG1GC", "-XX:ObjectAlignmentInBytes=8", null, false); |
127 testDump(9, "-XX:+UseG1GC", "-XX:ObjectAlignmentInBytes=8", null, false); |
134 testExec(9, "-XX:+UseG1GC", "-XX:ObjectAlignmentInBytes=16", |
128 testExec(9, "-XX:+UseG1GC", "-XX:ObjectAlignmentInBytes=16", |
135 OBJ_ALIGNMENT_MISMATCH, true); |
129 OBJ_ALIGNMENT_MISMATCH, true); |