Mercurial > hg > truffle
diff src/share/vm/opto/parseHelper.cpp @ 10278:6f3fd5150b67
6934604: enable parts of EliminateAutoBox by default
Summary: Resurrected autobox elimination code and enabled part of it by default.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Wed, 08 May 2013 15:08:01 -0700 |
parents | aeaca88565e6 |
children | c775af091fe9 |
line wrap: on
line diff
--- a/src/share/vm/opto/parseHelper.cpp Mon May 06 19:49:23 2013 -0700 +++ b/src/share/vm/opto/parseHelper.cpp Wed May 08 15:08:01 2013 -0700 @@ -284,6 +284,11 @@ klass == C->env()->StringBuffer_klass())) { C->set_has_stringbuilder(true); } + + // Keep track of boxed values for EliminateAutoBox optimizations. + if (C->eliminate_boxing() && klass->is_box_klass()) { + C->set_has_boxed_value(true); + } } #ifndef PRODUCT