mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-12-04 18:46:37 +00:00
8205702: assert(UseCompressedClassPointers) failed in universe.hpp
Reviewed-by: coleenp, ccheung
This commit is contained in:
parent
7c8da483fa
commit
258346a5a0
@ -3900,13 +3900,13 @@ jint Arguments::apply_ergo() {
|
||||
jint result = set_ergonomics_flags();
|
||||
if (result != JNI_OK) return result;
|
||||
|
||||
set_shared_spaces_flags();
|
||||
|
||||
// Set heap size based on available physical memory
|
||||
set_heap_size();
|
||||
|
||||
GCConfig::arguments()->initialize();
|
||||
|
||||
set_shared_spaces_flags();
|
||||
|
||||
// Initialize Metaspace flags and alignments
|
||||
Metaspace::ergo_initialize();
|
||||
|
||||
|
@ -39,6 +39,7 @@
|
||||
*/
|
||||
|
||||
import jdk.test.lib.Asserts;
|
||||
import jdk.test.lib.Platform;
|
||||
import jdk.test.lib.process.OutputAnalyzer;
|
||||
|
||||
import sun.hotspot.code.Compiler;
|
||||
@ -62,6 +63,9 @@ public class IncompatibleOptions {
|
||||
|
||||
// Uncompressed OOPs
|
||||
testDump(1, "-XX:+UseG1GC", "-XX:-UseCompressedOops", COOPS_DUMP_WARNING, true);
|
||||
if (Platform.isLinux() && Platform.isX64()) {
|
||||
testDump(1, "-XX:+UnlockExperimentalVMOptions", "-XX:+UseZGC", COOPS_DUMP_WARNING, true);
|
||||
}
|
||||
|
||||
// incompatible GCs
|
||||
testDump(2, "-XX:+UseParallelGC", "", GC_WARNING, false);
|
||||
|
Loading…
Reference in New Issue
Block a user