-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b31
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085718 | emb-9 | Attila Szegedi | P3 | Resolved | Fixed | team |
JDK-8064222 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8058236 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b06 |
JDK-8070459 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
RecompilableScriptFunctionData instances have gotten pretty big. There are some opportunities for reducing their footprint:
- most functions have empty nestedFunctions. Canonicalizing them with Collections.emptyMap() would help.
- most functions have empty internalSymbols. Canonicalizing them with Collections.emptySet() would help.
- most functions (those that don't set any this.* properties) will have the same allocatorClassName (JO4, currently) and an empty allocatorMap. By extracting the tuple of (allocatorClassName, allocatorMap, allocator) into a separate small AllocatorStrategy class and keeping a canonical DEFAULT_STRATEGY instance around for representing allocator strategy for functions that don't initialize any this.* properties, we could eliminate 2 fields, and reduce the number of class names and empty property maps around.
- most functions have empty nestedFunctions. Canonicalizing them with Collections.emptyMap() would help.
- most functions have empty internalSymbols. Canonicalizing them with Collections.emptySet() would help.
- most functions (those that don't set any this.* properties) will have the same allocatorClassName (JO4, currently) and an empty allocatorMap. By extracting the tuple of (allocatorClassName, allocatorMap, allocator) into a separate small AllocatorStrategy class and keeping a canonical DEFAULT_STRATEGY instance around for representing allocator strategy for functions that don't initialize any this.* properties, we could eliminate 2 fields, and reduce the number of class names and empty property maps around.
- backported by
-
JDK-8058236 Reduce the RecompilableScriptFunctionData footprint
-
- Resolved
-
-
JDK-8064222 Reduce the RecompilableScriptFunctionData footprint
-
- Resolved
-
-
JDK-8070459 Reduce the RecompilableScriptFunctionData footprint
-
- Resolved
-
-
JDK-8085718 Reduce the RecompilableScriptFunctionData footprint
-
- Resolved
-