File tree 2 files changed +6
-6
lines changed
src/hotspot/share/runtime
test/hotspot/jtreg/runtime/cds
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3048,6 +3048,11 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
3048
3048
// class metadata instead of modifying them in place. The copy is inaccessible to the compiler.
3049
3049
// TODO: revisit the following for the static archive case.
3050
3050
set_mode_flags (_int);
3051
+
3052
+ // String deduplication may cause CDS to iterate the strings in different order from one
3053
+ // run to another which resulting in non-determinstic CDS archives.
3054
+ // Disable UseStringDeduplication while dumping CDS archive.
3055
+ UseStringDeduplication = false ;
3051
3056
}
3052
3057
3053
3058
// RecordDynamicDumpInfo is not compatible with ArchiveClassesAtExit
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2020, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2020, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -54,11 +54,6 @@ public static void doTest(boolean compressed) throws Exception {
54
54
baseArgs .add ("-Xmx128M" );
55
55
56
56
if (Platform .is64bit ()) {
57
- if (!compressed ) {
58
- System .out .println ("CDS archives with uncompressed oops are still non-deterministic" );
59
- System .out .println ("See https://bugs.openjdk.org/browse/JDK-8282828" );
60
- return ;
61
- }
62
57
// These options are available only on 64-bit.
63
58
String sign = (compressed ) ? "+" : "-" ;
64
59
baseArgs .add ("-XX:" + sign + "UseCompressedOops" );
You can’t perform that action at this time.
0 commit comments