From be6bdedc1d88129f4b72f3a72c61e0a95815eff2 Mon Sep 17 00:00:00 2001 From: never Date: Wed, 6 Apr 2011 16:02:50 -0700 Subject: [PATCH] 7034513: enable fast accessors and empty methods for ZERO and -Xint Reviewed-by: kvn, iveresov --- src/share/vm/runtime/arguments.cpp | 10 ++++++++++ src/share/vm/runtime/globals.hpp | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/share/vm/runtime/arguments.cpp b/src/share/vm/runtime/arguments.cpp index 550559e06..c4ba77761 100644 --- a/src/share/vm/runtime/arguments.cpp +++ b/src/share/vm/runtime/arguments.cpp @@ -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; diff --git a/src/share/vm/runtime/globals.hpp b/src/share/vm/runtime/globals.hpp index f9c4d322e..020a1673e 100644 --- a/src/share/vm/runtime/globals.hpp +++ b/src/share/vm/runtime/globals.hpp @@ -2726,10 +2726,10 @@ class CommandLineFlags { 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, \ -- GitLab