mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6934604: enable parts of EliminateAutoBox by default
Resurrected autobox elimination code and enabled part of it by default. Reviewed-by: roland, twisti
This commit is contained in:
parent
7c367a6025
commit
b4977e887a
48 changed files with 5776 additions and 501 deletions
|
@ -284,6 +284,11 @@ void Parse::do_new() {
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue