--- a/src/hotspot/share/runtime/arguments.cpp Thu Nov 14 10:02:52 2019 +0800
+++ b/src/hotspot/share/runtime/arguments.cpp Wed Nov 13 16:36:54 2019 -0800
@@ -85,6 +85,7 @@
bool Arguments::_ClipInlining = ClipInlining;
intx Arguments::_Tier3InvokeNotifyFreqLog = Tier3InvokeNotifyFreqLog;
intx Arguments::_Tier4InvocationThreshold = Tier4InvocationThreshold;
+size_t Arguments::_SharedBaseAddress = SharedBaseAddress;
bool Arguments::_enable_preview = false;
@@ -2274,6 +2275,9 @@
Arguments::_Tier4InvocationThreshold = Tier4InvocationThreshold;
}
+ // CDS dumping always write the archive to the default value of SharedBaseAddress.
+ Arguments::_SharedBaseAddress = SharedBaseAddress;
+
// Setup flags for mixed which is the default
set_mode_flags(_mixed);