mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7034513: enable fast accessors and empty methods for ZERO and -Xint
Reviewed-by: kvn, iveresov
This commit is contained in:
parent
4f41ea7fff
commit
8a4683b5ed
2 changed files with 12 additions and 2 deletions
|
@ -962,6 +962,16 @@ void Arguments::set_mode_flags(Mode mode) {
|
|||
UseCompiler = true;
|
||||
UseLoopCounter = true;
|
||||
|
||||
#ifndef ZERO
|
||||
// Turn these off for mixed and comp. Leave them on for Zero.
|
||||
if (FLAG_IS_DEFAULT(UseFastAccessorMethods)) {
|
||||
UseFastAccessorMethods = mode == _int;
|
||||
}
|
||||
if (FLAG_IS_DEFAULT(UseFastEmptyMethods)) {
|
||||
UseFastEmptyMethods = mode == _int;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Default values may be platform/compiler dependent -
|
||||
// use the saved values
|
||||
ClipInlining = Arguments::_ClipInlining;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue