JDK-8043605 : Enable history for empty property maps
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-05-21
  • Updated: 2015-09-29
  • Resolved: 2014-05-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u40Fixed 9 b17Fixed
Related Reports
Relates :  
Relates :  
JDK-8011540 disabled retaining of history for empty property maps. This unfortunately has the effect of creating a lot of new, semantically identical maps when an object's properties are populated dynamically (e.g. by reading key-value pairs from an array etc.) and thus subsequently producing megamorphic call sites. The histories are held as maps of (property->propertyMap), with properties held weakly and property maps held softly. These maps are mostly strongly held by other parts of the system, so they don't contribute to the memory pressure; the only thing contributing is the memory for the map itself.