-
Enhancement
-
Resolution: Fixed
-
P2
-
9
-
None
-
b17
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064105 | 8u45 | Attila Szegedi | P2 | Resolved | Fixed | b01 |
JDK-8055572 | 8u40 | Attila Szegedi | P2 | Closed | Fixed | b04 |
JDK-8070342 | emb-8u47 | Attila Szegedi | P2 | Resolved | Fixed | team |
We used to store "generic" (all-Object) versions of invokers and constructors in a weak hash map (reasoning was that they're rare, so we shouldn't pay the price of a field in RecompilableScriptFunctionData).
Well, turns out we have to, otherwise we get a significant performance hit. I reduced the storage hit by introducing a holder class (GenericInvokers) for the two fields, and only have RecompilableScriptFunctionData reference the holder object. The heuristics here is again that in most cases, functions will not be using the generic invokers.
Well, turns out we have to, otherwise we get a significant performance hit. I reduced the storage hit by introducing a holder class (GenericInvokers) for the two fields, and only have RecompilableScriptFunctionData reference the holder object. The heuristics here is again that in most cases, functions will not be using the generic invokers.
- backported by
-
JDK-8064105 Use strongly referenced generic invokers
-
- Resolved
-
-
JDK-8070342 Use strongly referenced generic invokers
-
- Resolved
-
-
JDK-8055572 Use strongly referenced generic invokers
-
- Closed
-