-
Bug
-
Resolution: Fixed
-
P3
-
9
-
None
-
b28
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8056557 | emb-9 | Attila Szegedi | P3 | Resolved | Fixed | master |
JDK-8064183 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8055649 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b04 |
JDK-8070420 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
With optimistic typing, we try to evaluate lots of side-effect free expressions when we do on-demand compilation to gain insight into the types of those expressions. Unfortunately, some scoped variables were mistakenly marked as being in local slots and not in scope, and thus compilation didn't benefit from compile-time type evaluation for them. While this does not affect correctness, it resulted in unnecessarily increasing the number of deoptimizing recompilations as the compiler couldn't detect early that a program point doing a dyn:getProp on such variables will deoptimize later.
The solution is to postpone communicating the information about a symbol being local to the Compiler until AssignSymbols has processed the whole Block that defines the symbol, instead of doing it as soon as the symbol is defined (as circumstances following the definition can promote the symbol into scope, e.g. it being accessed from a nested function etc.)
The solution is to postpone communicating the information about a symbol being local to the Compiler until AssignSymbols has processed the whole Block that defines the symbol, instead of doing it as soon as the symbol is defined (as circumstances following the definition can promote the symbol into scope, e.g. it being accessed from a nested function etc.)
- backported by
-
JDK-8055649 Compile-time expression evaluator was missing variables
-
- Resolved
-
-
JDK-8056557 Compile-time expression evaluator was missing variables
-
- Resolved
-
-
JDK-8064183 Compile-time expression evaluator was missing variables
-
- Resolved
-
-
JDK-8070420 Compile-time expression evaluator was missing variables
-
- Resolved
-