8243506: SharedBaseAddress is ignored by -Xshare:dump

Reviewed-by: stuefe, ccheung
This commit is contained in:
Ioi Lam 2020-06-02 01:08:44 -07:00
parent b5775c831d
commit f39a71cafe
10 changed files with 199 additions and 49 deletions

View file

@ -85,7 +85,7 @@ bool Arguments::_BackgroundCompilation = BackgroundCompilation;
bool Arguments::_ClipInlining = ClipInlining;
intx Arguments::_Tier3InvokeNotifyFreqLog = Tier3InvokeNotifyFreqLog;
intx Arguments::_Tier4InvocationThreshold = Tier4InvocationThreshold;
size_t Arguments::_SharedBaseAddress = SharedBaseAddress;
size_t Arguments::_default_SharedBaseAddress = SharedBaseAddress;
bool Arguments::_enable_preview = false;
@ -2281,8 +2281,8 @@ jint Arguments::parse_vm_init_args(const JavaVMInitArgs *vm_options_args,
Arguments::_Tier4InvocationThreshold = Tier4InvocationThreshold;
}
// CDS dumping always write the archive to the default value of SharedBaseAddress.
Arguments::_SharedBaseAddress = SharedBaseAddress;
// Remember the default value of SharedBaseAddress.
Arguments::_default_SharedBaseAddress = SharedBaseAddress;
// Setup flags for mixed which is the default
set_mode_flags(_mixed);