mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
7041582: set_mode_flags isn't called without -Xmixed specified
Reviewed-by: kvn, iveresov
This commit is contained in:
parent
676d346314
commit
af178514e2
1 changed files with 5 additions and 2 deletions
|
@ -969,10 +969,10 @@ void Arguments::set_mode_flags(Mode mode) {
|
||||||
#ifndef ZERO
|
#ifndef ZERO
|
||||||
// Turn these off for mixed and comp. Leave them on for Zero.
|
// Turn these off for mixed and comp. Leave them on for Zero.
|
||||||
if (FLAG_IS_DEFAULT(UseFastAccessorMethods)) {
|
if (FLAG_IS_DEFAULT(UseFastAccessorMethods)) {
|
||||||
UseFastAccessorMethods = mode == _int;
|
UseFastAccessorMethods = (mode == _int);
|
||||||
}
|
}
|
||||||
if (FLAG_IS_DEFAULT(UseFastEmptyMethods)) {
|
if (FLAG_IS_DEFAULT(UseFastEmptyMethods)) {
|
||||||
UseFastEmptyMethods = mode == _int;
|
UseFastEmptyMethods = (mode == _int);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1987,6 +1987,9 @@ jint Arguments::parse_vm_init_args(const JavaVMInitArgs* args) {
|
||||||
Arguments::_ClipInlining = ClipInlining;
|
Arguments::_ClipInlining = ClipInlining;
|
||||||
Arguments::_BackgroundCompilation = BackgroundCompilation;
|
Arguments::_BackgroundCompilation = BackgroundCompilation;
|
||||||
|
|
||||||
|
// Setup flags for mixed which is the default
|
||||||
|
set_mode_flags(_mixed);
|
||||||
|
|
||||||
// Parse JAVA_TOOL_OPTIONS environment variable (if present)
|
// Parse JAVA_TOOL_OPTIONS environment variable (if present)
|
||||||
jint result = parse_java_tool_options_environment_variable(&scp, &scp_assembly_required);
|
jint result = parse_java_tool_options_environment_variable(&scp, &scp_assembly_required);
|
||||||
if (result != JNI_OK) {
|
if (result != JNI_OK) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue