Skip to content

Commit 115b074

Browse files
committedNov 13, 2023
8319944: Remove DynamicDumpSharedSpaces
Reviewed-by: dholmes, ccheung, matsaave
1 parent c0507af commit 115b074

15 files changed

+52
-50
lines changed
 

‎src/hotspot/share/cds/archiveBuilder.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "cds/archiveBuilder.hpp"
2727
#include "cds/archiveHeapWriter.hpp"
2828
#include "cds/archiveUtils.hpp"
29+
#include "cds/cdsConfig.hpp"
2930
#include "cds/cppVtables.hpp"
3031
#include "cds/dumpAllocStats.hpp"
3132
#include "cds/dynamicArchive.hpp"
@@ -515,7 +516,7 @@ bool ArchiveBuilder::is_excluded(Klass* klass) {
515516
Klass* bottom = ObjArrayKlass::cast(klass)->bottom_klass();
516517
if (MetaspaceShared::is_shared_static(bottom)) {
517518
// The bottom class is in the static archive so it's clearly not excluded.
518-
assert(DynamicDumpSharedSpaces, "sanity");
519+
assert(CDSConfig::is_dumping_dynamic_archive(), "sanity");
519520
return false;
520521
} else if (bottom->is_instance_klass()) {
521522
return SystemDictionaryShared::is_excluded_class(InstanceKlass::cast(bottom));
@@ -743,7 +744,7 @@ void ArchiveBuilder::make_klasses_shareable() {
743744
assert(k->is_instance_klass(), " must be");
744745
num_instance_klasses ++;
745746
InstanceKlass* ik = InstanceKlass::cast(k);
746-
if (DynamicDumpSharedSpaces) {
747+
if (CDSConfig::is_dumping_dynamic_archive()) {
747748
// For static dump, class loader type are already set.
748749
ik->assign_class_loader_type();
749750
}
@@ -816,7 +817,7 @@ uintx ArchiveBuilder::buffer_to_offset(address p) const {
816817

817818
uintx ArchiveBuilder::any_to_offset(address p) const {
818819
if (is_in_mapped_static_archive(p)) {
819-
assert(DynamicDumpSharedSpaces, "must be");
820+
assert(CDSConfig::is_dumping_dynamic_archive(), "must be");
820821
return p - _mapped_static_archive_bottom;
821822
}
822823
if (!is_in_buffer_space(p)) {
@@ -924,7 +925,7 @@ void ArchiveBuilder::relocate_to_requested() {
924925
RelocateBufferToRequested<true> patcher(this);
925926
patcher.doit();
926927
} else {
927-
assert(DynamicDumpSharedSpaces, "must be");
928+
assert(CDSConfig::is_dumping_dynamic_archive(), "must be");
928929
_requested_dynamic_archive_top = _requested_dynamic_archive_bottom + my_archive_size;
929930
RelocateBufferToRequested<false> patcher(this);
930931
patcher.doit();

‎src/hotspot/share/cds/cdsConfig.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,12 @@
2626
#include "cds/cdsConfig.hpp"
2727
#include "cds/heapShared.hpp"
2828

29-
bool CDSConfig::is_dumping_archive() {
30-
return is_dumping_static_archive() || is_dumping_dynamic_archive();
31-
}
29+
bool CDSConfig::_is_dumping_dynamic_archive = false;
3230

3331
bool CDSConfig::is_dumping_static_archive() {
3432
return DumpSharedSpaces;
3533
}
3634

37-
bool CDSConfig::is_dumping_dynamic_archive() {
38-
return DynamicDumpSharedSpaces;
39-
}
40-
4135
#if INCLUDE_CDS_JAVA_HEAP
4236
bool CDSConfig::is_dumping_heap() {
4337
// heap dump is not supported in dynamic dump

‎src/hotspot/share/cds/cdsConfig.hpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@
2929
#include "utilities/macros.hpp"
3030

3131
class CDSConfig : public AllStatic {
32+
#if INCLUDE_CDS
33+
static bool _is_dumping_dynamic_archive;
34+
#endif
35+
3236
public:
3337
// Basic CDS features
34-
static bool is_dumping_archive() NOT_CDS_RETURN_(false);
38+
static bool is_dumping_archive() { return is_dumping_static_archive() || is_dumping_dynamic_archive(); }
3539
static bool is_dumping_static_archive() NOT_CDS_RETURN_(false);
36-
static bool is_dumping_dynamic_archive() NOT_CDS_RETURN_(false);
40+
static bool is_dumping_dynamic_archive() { return CDS_ONLY(_is_dumping_dynamic_archive) NOT_CDS(false); }
41+
static void enable_dumping_dynamic_archive() { CDS_ONLY(_is_dumping_dynamic_archive = true); }
42+
static void disable_dumping_dynamic_archive() { CDS_ONLY(_is_dumping_dynamic_archive = false); }
3743

3844
// CDS archived heap
3945
static bool is_dumping_heap() NOT_CDS_JAVA_HEAP_RETURN_(false);

‎src/hotspot/share/cds/dynamicArchive.cpp

+7-6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "cds/archiveHeapWriter.hpp"
2828
#include "cds/archiveUtils.inline.hpp"
2929
#include "cds/cds_globals.hpp"
30+
#include "cds/cdsConfig.hpp"
3031
#include "cds/classPrelinker.hpp"
3132
#include "cds/dynamicArchive.hpp"
3233
#include "cds/regeneratedClasses.hpp"
@@ -409,7 +410,7 @@ void DynamicArchive::append_array_klass(ObjArrayKlass* ak) {
409410
}
410411

411412
void DynamicArchive::dump_array_klasses() {
412-
assert(DynamicDumpSharedSpaces, "DynamicDumpSharedSpaces only");
413+
assert(CDSConfig::is_dumping_dynamic_archive(), "sanity");
413414
if (_array_klasses != nullptr) {
414415
ArchiveBuilder* builder = ArchiveBuilder::current();
415416
int num_array_klasses = _array_klasses->length();
@@ -469,7 +470,7 @@ int DynamicArchive::num_array_klasses() {
469470
}
470471

471472
void DynamicArchive::check_for_dynamic_dump() {
472-
if (DynamicDumpSharedSpaces && !UseSharedSpaces) {
473+
if (CDSConfig::is_dumping_dynamic_archive() && !UseSharedSpaces) {
473474
// This could happen if SharedArchiveFile has failed to load:
474475
// - -Xshare:off was specified
475476
// - SharedArchiveFile points to an non-existent file.
@@ -485,15 +486,15 @@ void DynamicArchive::check_for_dynamic_dump() {
485486
log_warning(cds)("-XX:ArchiveClassesAtExit" __THEMSG);
486487
}
487488
#undef __THEMSG
488-
DynamicDumpSharedSpaces = false;
489+
CDSConfig::disable_dumping_dynamic_archive();
489490
}
490491
}
491492

492493
void DynamicArchive::dump_at_exit(JavaThread* current, const char* archive_name) {
493494
ExceptionMark em(current);
494495
ResourceMark rm(current);
495496

496-
if (!DynamicDumpSharedSpaces || archive_name == nullptr) {
497+
if (!CDSConfig::is_dumping_dynamic_archive() || archive_name == nullptr) {
497498
return;
498499
}
499500

@@ -516,14 +517,14 @@ void DynamicArchive::dump_at_exit(JavaThread* current, const char* archive_name)
516517
log_error(cds)("%s: %s", ex->klass()->external_name(),
517518
java_lang_String::as_utf8_string(java_lang_Throwable::message(ex)));
518519
CLEAR_PENDING_EXCEPTION;
519-
DynamicDumpSharedSpaces = false; // Just for good measure
520+
CDSConfig::disable_dumping_dynamic_archive(); // Just for good measure
520521
}
521522

522523
// This is called by "jcmd VM.cds dynamic_dump"
523524
void DynamicArchive::dump_for_jcmd(const char* archive_name, TRAPS) {
524525
assert(UseSharedSpaces && RecordDynamicDumpInfo, "already checked in arguments.cpp");
525526
assert(ArchiveClassesAtExit == nullptr, "already checked in arguments.cpp");
526-
assert(DynamicDumpSharedSpaces, "already checked by check_for_dynamic_dump() during VM startup");
527+
assert(CDSConfig::is_dumping_dynamic_archive(), "already checked by check_for_dynamic_dump() during VM startup");
527528
MetaspaceShared::link_shared_classes(true/*from jcmd*/, CHECK);
528529
// copy shared path table to saved.
529530
VM_PopulateDynamicDumpSharedSpace op(archive_name);

‎src/hotspot/share/cds/filemap.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ void FileMapHeader::populate(FileMapInfo *info, size_t core_region_alignment,
194194
set_base_archive_name_offset((unsigned int)base_archive_name_offset);
195195
set_base_archive_name_size((unsigned int)base_archive_name_size);
196196
set_common_app_classpath_prefix_size((unsigned int)common_app_classpath_prefix_size);
197-
set_magic(DynamicDumpSharedSpaces ? CDS_DYNAMIC_ARCHIVE_MAGIC : CDS_ARCHIVE_MAGIC);
197+
set_magic(CDSConfig::is_dumping_dynamic_archive() ? CDS_DYNAMIC_ARCHIVE_MAGIC : CDS_ARCHIVE_MAGIC);
198198
set_version(CURRENT_CDS_ARCHIVE_VERSION);
199199

200200
if (!info->is_static() && base_archive_name_size != 0) {
@@ -235,7 +235,7 @@ void FileMapHeader::populate(FileMapInfo *info, size_t core_region_alignment,
235235
_mapped_base_address = (char*)SharedBaseAddress;
236236
_allow_archiving_with_java_agent = AllowArchivingWithJavaAgent;
237237

238-
if (!DynamicDumpSharedSpaces) {
238+
if (!CDSConfig::is_dumping_dynamic_archive()) {
239239
set_shared_path_table(info->_shared_path_table);
240240
}
241241
}
@@ -932,7 +932,7 @@ bool FileMapInfo::validate_shared_path_table() {
932932

933933
// Load the shared path table info from the archive header
934934
_shared_path_table = header()->shared_path_table();
935-
if (DynamicDumpSharedSpaces) {
935+
if (CDSConfig::is_dumping_dynamic_archive()) {
936936
// Only support dynamic dumping with the usage of the default CDS archive
937937
// or a simple base archive.
938938
// If the base layer archive contains additional path component besides
@@ -942,13 +942,13 @@ bool FileMapInfo::validate_shared_path_table() {
942942
// to include the application path and stored in the top layer archive.
943943
assert(shared_path(0)->is_modules_image(), "first shared_path must be the modules image");
944944
if (header()->app_class_paths_start_index() > 1) {
945-
DynamicDumpSharedSpaces = false;
945+
CDSConfig::disable_dumping_dynamic_archive();
946946
log_warning(cds)(
947947
"Dynamic archiving is disabled because base layer archive has appended boot classpath");
948948
}
949949
if (header()->num_module_paths() > 0) {
950950
if (!check_module_paths()) {
951-
DynamicDumpSharedSpaces = false;
951+
CDSConfig::disable_dumping_dynamic_archive();
952952
log_warning(cds)(
953953
"Dynamic archiving is disabled because base layer archive has a different module path");
954954
}
@@ -1523,7 +1523,7 @@ void FileMapInfo::write_region(int region, char* base, size_t size,
15231523
} else if (HeapShared::is_heap_region(region)) {
15241524
assert(HeapShared::can_write(), "sanity");
15251525
#if INCLUDE_CDS_JAVA_HEAP
1526-
assert(!DynamicDumpSharedSpaces, "must be");
1526+
assert(!CDSConfig::is_dumping_dynamic_archive(), "must be");
15271527
requested_base = (char*)ArchiveHeapWriter::requested_address();
15281528
if (UseCompressedOops) {
15291529
mapping_offset = (size_t)((address)requested_base - CompressedOops::base());
@@ -2272,7 +2272,7 @@ bool FileMapInfo::initialize() {
22722272
} else {
22732273
log_info(cds)("Initialize dynamic archive failed.");
22742274
if (AutoCreateSharedArchive) {
2275-
DynamicDumpSharedSpaces = true;
2275+
CDSConfig::enable_dumping_dynamic_archive();
22762276
ArchiveClassesAtExit = Arguments::GetSharedDynamicArchivePath();
22772277
}
22782278
return false;

‎src/hotspot/share/cds/metaspaceShared.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void MetaspaceShared::post_initialize(TRAPS) {
279279
int size = FileMapInfo::get_number_of_shared_paths();
280280
if (size > 0) {
281281
CDSProtectionDomain::allocate_shared_data_arrays(size, CHECK);
282-
if (!DynamicDumpSharedSpaces) {
282+
if (!CDSConfig::is_dumping_dynamic_archive()) {
283283
FileMapInfo* info;
284284
if (FileMapInfo::dynamic_info() == nullptr) {
285285
info = FileMapInfo::current_info();
@@ -584,7 +584,7 @@ bool MetaspaceShared::may_be_eagerly_linked(InstanceKlass* ik) {
584584
// linked/verified at runtime.
585585
return false;
586586
}
587-
if (DynamicDumpSharedSpaces && ik->is_shared_unregistered_class()) {
587+
if (CDSConfig::is_dumping_dynamic_archive() && ik->is_shared_unregistered_class()) {
588588
// Linking of unregistered classes at this stage may cause more
589589
// classes to be resolved, resulting in calls to ClassLoader.loadClass()
590590
// that may not be expected by custom class loaders.
@@ -949,13 +949,13 @@ void MetaspaceShared::initialize_runtime_shared_and_meta_spaces() {
949949
}
950950
} else {
951951
set_shared_metaspace_range(nullptr, nullptr, nullptr);
952-
if (DynamicDumpSharedSpaces) {
952+
if (CDSConfig::is_dumping_dynamic_archive()) {
953953
log_warning(cds)("-XX:ArchiveClassesAtExit is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info.");
954954
}
955955
UseSharedSpaces = false;
956956
// The base archive cannot be mapped. We cannot dump the dynamic shared archive.
957957
AutoCreateSharedArchive = false;
958-
DynamicDumpSharedSpaces = false;
958+
CDSConfig::disable_dumping_dynamic_archive();
959959
log_info(cds)("Unable to map shared spaces");
960960
if (PrintSharedArchiveAndExit) {
961961
MetaspaceShared::unrecoverable_loading_error("Unable to use shared archive.");
@@ -991,7 +991,7 @@ FileMapInfo* MetaspaceShared::open_static_archive() {
991991
}
992992

993993
FileMapInfo* MetaspaceShared::open_dynamic_archive() {
994-
if (DynamicDumpSharedSpaces) {
994+
if (CDSConfig::is_dumping_dynamic_archive()) {
995995
return nullptr;
996996
}
997997
const char* dynamic_archive = Arguments::GetSharedDynamicArchivePath();
@@ -1486,7 +1486,7 @@ void MetaspaceShared::initialize_shared_spaces() {
14861486
}
14871487

14881488
// Set up LambdaFormInvokers::_lambdaform_lines for dynamic dump
1489-
if (DynamicDumpSharedSpaces) {
1489+
if (CDSConfig::is_dumping_dynamic_archive()) {
14901490
// Read stored LF format lines stored in static archive
14911491
LambdaFormInvokers::read_static_archive_invokers();
14921492
}

‎src/hotspot/share/classfile/classLoader.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,9 @@ InstanceKlass* ClassLoader::load_class(Symbol* name, bool search_append_only, TR
11261126
// check will determine if a shared class is visible based on the runtime
11271127
// environment, including the runtime --patch-module setting.
11281128
//
1129-
// DynamicDumpSharedSpaces requires UseSharedSpaces to be enabled. Since --patch-module
1130-
// is not supported with UseSharedSpaces, it is not supported with DynamicDumpSharedSpaces.
1131-
assert(!DynamicDumpSharedSpaces, "sanity");
1129+
// Dynamic dumping requires UseSharedSpaces to be enabled. Since --patch-module
1130+
// is not supported with UseSharedSpaces, we can never come here during dynamic dumping.
1131+
assert(!CDSConfig::is_dumping_dynamic_archive(), "sanity");
11321132
if (!DumpSharedSpaces) {
11331133
stream = search_module_entries(THREAD, _patch_mod_entries, class_name, file_name);
11341134
}
@@ -1491,7 +1491,7 @@ void ClassLoader::classLoader_init2(JavaThread* current) {
14911491
// entries will be added to the exploded build array.
14921492
if (!has_jrt_entry()) {
14931493
assert(!DumpSharedSpaces, "DumpSharedSpaces not supported with exploded module builds");
1494-
assert(!DynamicDumpSharedSpaces, "DynamicDumpSharedSpaces not supported with exploded module builds");
1494+
assert(!CDSConfig::is_dumping_dynamic_archive(), "not supported with exploded module builds");
14951495
assert(!UseSharedSpaces, "UsedSharedSpaces not supported with exploded module builds");
14961496
// Set up the boot loader's _exploded_entries list. Note that this gets
14971497
// done before loading any classes, by the same thread that will

‎src/hotspot/share/classfile/symbolTable.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "precompiled.hpp"
2626
#include "cds/archiveBuilder.hpp"
27+
#include "cds/cdsConfig.hpp"
2728
#include "cds/dynamicArchive.hpp"
2829
#include "classfile/altHashing.hpp"
2930
#include "classfile/classLoaderData.hpp"
@@ -671,10 +672,11 @@ size_t SymbolTable::estimate_size_for_archive() {
671672
void SymbolTable::write_to_archive(GrowableArray<Symbol*>* symbols) {
672673
CompactHashtableWriter writer(int(_items_count), ArchiveBuilder::symbol_stats());
673674
copy_shared_symbol_table(symbols, &writer);
674-
if (!DynamicDumpSharedSpaces) {
675+
if (CDSConfig::is_dumping_static_archive()) {
675676
_shared_table.reset();
676677
writer.dump(&_shared_table, "symbol");
677678
} else {
679+
assert(CDSConfig::is_dumping_dynamic_archive(), "must be");
678680
_dynamic_shared_table.reset();
679681
writer.dump(&_dynamic_shared_table, "symbol");
680682
}

‎src/hotspot/share/classfile/systemDictionaryShared.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ void SystemDictionaryShared::record_linking_constraint(Symbol* name, InstanceKla
986986
assert(klass_loader != nullptr, "should not be called for boot loader");
987987
assert(loader1 != loader2, "must be");
988988

989-
if (DynamicDumpSharedSpaces && Thread::current()->is_VM_thread()) {
989+
if (CDSConfig::is_dumping_dynamic_archive() && Thread::current()->is_VM_thread()) {
990990
// We are re-laying out the vtable/itables of the *copy* of
991991
// a class during the final stage of dynamic dumping. The
992992
// linking constraints for this class has already been recorded.

‎src/hotspot/share/interpreter/rewriter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void Rewriter::make_constant_pool_cache(TRAPS) {
120120
#if INCLUDE_CDS
121121
if (!HAS_PENDING_EXCEPTION && CDSConfig::is_dumping_archive()) {
122122
if (_pool->pool_holder()->is_shared()) {
123-
assert(DynamicDumpSharedSpaces, "must be");
123+
assert(CDSConfig::is_dumping_dynamic_archive(), "must be");
124124
// We are linking a shared class from the base archive. This
125125
// class won't be written into the dynamic archive, so there's no
126126
// need to save its CpCaches.

‎src/hotspot/share/oops/instanceKlass.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ NOINLINE int linear_search(const Array<Method*>* methods, const Symbol* name) {
18751875

18761876
inline int InstanceKlass::quick_search(const Array<Method*>* methods, const Symbol* name) {
18771877
if (_disable_method_binary_search) {
1878-
assert(DynamicDumpSharedSpaces, "must be");
1878+
assert(CDSConfig::is_dumping_dynamic_archive(), "must be");
18791879
// At the final stage of dynamic dumping, the methods array may not be sorted
18801880
// by ascending addresses of their names, so we can't use binary search anymore.
18811881
// However, methods with the same name are still laid out consecutively inside the
@@ -2696,7 +2696,7 @@ void InstanceKlass::init_shared_package_entry() {
26962696
#else
26972697
if (!MetaspaceShared::use_full_module_graph()) {
26982698
_package_entry = nullptr;
2699-
} else if (DynamicDumpSharedSpaces) {
2699+
} else if (CDSConfig::is_dumping_dynamic_archive()) {
27002700
if (!MetaspaceShared::is_in_shared_metaspace(_package_entry)) {
27012701
_package_entry = nullptr;
27022702
}

‎src/hotspot/share/prims/jvm.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3726,20 +3726,20 @@ JVM_END
37263726

37273727
JVM_LEAF(jboolean, JVM_IsDumpingClassList(JNIEnv *env))
37283728
#if INCLUDE_CDS
3729-
return ClassListWriter::is_enabled() || DynamicDumpSharedSpaces;
3729+
return ClassListWriter::is_enabled() || CDSConfig::is_dumping_dynamic_archive();
37303730
#else
37313731
return false;
37323732
#endif // INCLUDE_CDS
37333733
JVM_END
37343734

37353735
JVM_ENTRY(void, JVM_LogLambdaFormInvoker(JNIEnv *env, jstring line))
37363736
#if INCLUDE_CDS
3737-
assert(ClassListWriter::is_enabled() || DynamicDumpSharedSpaces, "Should be set and open or do dynamic dump");
3737+
assert(ClassListWriter::is_enabled() || CDSConfig::is_dumping_dynamic_archive(), "Should be set and open or do dynamic dump");
37383738
if (line != nullptr) {
37393739
ResourceMark rm(THREAD);
37403740
Handle h_line (THREAD, JNIHandles::resolve_non_null(line));
37413741
char* c_line = java_lang_String::as_utf8_string(h_line());
3742-
if (DynamicDumpSharedSpaces) {
3742+
if (CDSConfig::is_dumping_dynamic_archive()) {
37433743
// Note: LambdaFormInvokers::append take same format which is not
37443744
// same as below the print format. The line does not include LAMBDA_FORM_TAG.
37453745
LambdaFormInvokers::append(os::strdup((const char*)c_line, mtInternal));

‎src/hotspot/share/runtime/arguments.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -3063,9 +3063,9 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
30633063
}
30643064

30653065
if (ArchiveClassesAtExit == nullptr && !RecordDynamicDumpInfo) {
3066-
DynamicDumpSharedSpaces = false;
3066+
CDSConfig::disable_dumping_dynamic_archive();
30673067
} else {
3068-
DynamicDumpSharedSpaces = true;
3068+
CDSConfig::enable_dumping_dynamic_archive();
30693069
}
30703070

30713071
if (AutoCreateSharedArchive) {
@@ -3086,7 +3086,7 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
30863086
UseSharedSpaces = false;
30873087
}
30883088

3089-
if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
3089+
if (CDSConfig::is_dumping_archive()) {
30903090
// Always verify non-system classes during CDS dump
30913091
if (!BytecodeVerificationRemote) {
30923092
BytecodeVerificationRemote = true;
@@ -3493,7 +3493,7 @@ void Arguments::init_shared_archive_paths() {
34933493
// If +AutoCreateSharedArchive and the specified shared archive does not exist,
34943494
// regenerate the dynamic archive base on default archive.
34953495
if (AutoCreateSharedArchive && !os::file_exists(SharedArchiveFile)) {
3496-
DynamicDumpSharedSpaces = true;
3496+
CDSConfig::enable_dumping_dynamic_archive();
34973497
ArchiveClassesAtExit = const_cast<char *>(SharedArchiveFile);
34983498
SharedArchivePath = get_default_shared_archive_path();
34993499
SharedArchiveFile = nullptr;

‎src/hotspot/share/utilities/globalDefinitions.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ int BitsPerHeapOop = 0;
4141

4242
// Old CDS options
4343
bool DumpSharedSpaces;
44-
bool DynamicDumpSharedSpaces;
4544
bool RequireSharedSpaces;
4645
extern "C" {
4746
JNIEXPORT jboolean UseSharedSpaces = true;

0 commit comments

Comments
 (0)