aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/opto/c2_globals.hpp
diff options
context:
space:
mode:
authornever <none@none>2009-11-12 09:24:21 -0800
committernever <none@none>2009-11-12 09:24:21 -0800
commitd156d3d6a03f231076a0b2752e511f07fb421d1e (patch)
tree16db82a4764794dcace8c7e7d10edf4a6f16f460 /src/share/vm/opto/c2_globals.hpp
parent90991b04f6e3a5d378ec7ae0b51d7651180285d9 (diff)
6892658: C2 should optimize some stringbuilder patterns
Reviewed-by: kvn, twisti
Diffstat (limited to 'src/share/vm/opto/c2_globals.hpp')
-rw-r--r--src/share/vm/opto/c2_globals.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/share/vm/opto/c2_globals.hpp b/src/share/vm/opto/c2_globals.hpp
index 091ad4a9b..8c650eeaf 100644
--- a/src/share/vm/opto/c2_globals.hpp
+++ b/src/share/vm/opto/c2_globals.hpp
@@ -26,7 +26,7 @@
// Defines all globals flags used by the server compiler.
//
-#define C2_FLAGS(develop, develop_pd, product, product_pd, diagnostic, notproduct) \
+#define C2_FLAGS(develop, develop_pd, product, product_pd, diagnostic, experimental, notproduct) \
\
notproduct(intx, CompileZapFirst, 0, \
"If +ZapDeadCompiledLocals, " \
@@ -394,6 +394,12 @@
product(bool, UseOptoBiasInlining, true, \
"Generate biased locking code in C2 ideal graph") \
\
+ experimental(bool, OptimizeStringConcat, false, \
+ "Optimize the construction of Strings by StringBuilder") \
+ \
+ notproduct(bool, PrintOptimizeStringConcat, false, \
+ "Print information about transformations performed on Strings") \
+ \
product(intx, ValueSearchLimit, 1000, \
"Recursion limit in PhaseMacroExpand::value_from_mem_phi") \
\
@@ -413,4 +419,4 @@
product(bool, BlockLayoutRotateLoops, true, \
"Allow back branches to be fall throughs in the block layour") \
-C2_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_NOTPRODUCT_FLAG)
+C2_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_DIAGNOSTIC_FLAG, DECLARE_EXPERIMENTAL_FLAG, DECLARE_NOTPRODUCT_FLAG)