comparison src/share/vm/runtime/arguments.cpp @ 3341:e9b8ef09622a

7041582: set_mode_flags isn't called without -Xmixed specified Reviewed-by: kvn, iveresov
author never
date Wed, 04 May 2011 00:21:22 -0700
parents 732454aaf5cb
children 942e888897bc
comparison
equal deleted inserted replaced
3340:eae35325e5e1 3341:e9b8ef09622a
967 UseLoopCounter = true; 967 UseLoopCounter = true;
968 968
969 #ifndef ZERO 969 #ifndef ZERO
970 // Turn these off for mixed and comp. Leave them on for Zero. 970 // Turn these off for mixed and comp. Leave them on for Zero.
971 if (FLAG_IS_DEFAULT(UseFastAccessorMethods)) { 971 if (FLAG_IS_DEFAULT(UseFastAccessorMethods)) {
972 UseFastAccessorMethods = mode == _int; 972 UseFastAccessorMethods = (mode == _int);
973 } 973 }
974 if (FLAG_IS_DEFAULT(UseFastEmptyMethods)) { 974 if (FLAG_IS_DEFAULT(UseFastEmptyMethods)) {
975 UseFastEmptyMethods = mode == _int; 975 UseFastEmptyMethods = (mode == _int);
976 } 976 }
977 #endif 977 #endif
978 978
979 // Default values may be platform/compiler dependent - 979 // Default values may be platform/compiler dependent -
980 // use the saved values 980 // use the saved values
1984 // Save default settings for some mode flags 1984 // Save default settings for some mode flags
1985 Arguments::_AlwaysCompileLoopMethods = AlwaysCompileLoopMethods; 1985 Arguments::_AlwaysCompileLoopMethods = AlwaysCompileLoopMethods;
1986 Arguments::_UseOnStackReplacement = UseOnStackReplacement; 1986 Arguments::_UseOnStackReplacement = UseOnStackReplacement;
1987 Arguments::_ClipInlining = ClipInlining; 1987 Arguments::_ClipInlining = ClipInlining;
1988 Arguments::_BackgroundCompilation = BackgroundCompilation; 1988 Arguments::_BackgroundCompilation = BackgroundCompilation;
1989
1990 // Setup flags for mixed which is the default
1991 set_mode_flags(_mixed);
1989 1992
1990 // Parse JAVA_TOOL_OPTIONS environment variable (if present) 1993 // Parse JAVA_TOOL_OPTIONS environment variable (if present)
1991 jint result = parse_java_tool_options_environment_variable(&scp, &scp_assembly_required); 1994 jint result = parse_java_tool_options_environment_variable(&scp, &scp_assembly_required);
1992 if (result != JNI_OK) { 1995 if (result != JNI_OK) {
1993 return result; 1996 return result;