# HG changeset patch # User never # Date 1302130970 25200 # Node ID db10549c184e5bed2a1e8567d4f933e2df03fc93 # Parent e53283b68ac724a9a32a8926545c4e2940a6fe19 7034513: enable fast accessors and empty methods for ZERO and -Xint Reviewed-by: kvn, iveresov diff -r e53283b68ac7 -r db10549c184e hotspot/src/share/vm/runtime/arguments.cpp --- a/hotspot/src/share/vm/runtime/arguments.cpp Tue Apr 05 19:16:52 2011 -0700 +++ b/hotspot/src/share/vm/runtime/arguments.cpp Wed Apr 06 16:02:50 2011 -0700 @@ -962,6 +962,16 @@ 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; diff -r e53283b68ac7 -r db10549c184e hotspot/src/share/vm/runtime/globals.hpp --- a/hotspot/src/share/vm/runtime/globals.hpp Tue Apr 05 19:16:52 2011 -0700 +++ b/hotspot/src/share/vm/runtime/globals.hpp Wed Apr 06 16:02:50 2011 -0700 @@ -2726,10 +2726,10 @@ product(bool, UseLoopCounter, true, \ "Increment invocation counter on backward branch") \ \ - product(bool, UseFastEmptyMethods, false, \ + product(bool, UseFastEmptyMethods, true, \ "Use fast method entry code for empty methods") \ \ - product(bool, UseFastAccessorMethods, false, \ + product(bool, UseFastAccessorMethods, true, \ "Use fast method entry code for accessor methods") \ \ product_pd(bool, UseOnStackReplacement, \