JDK-8011095 : PropertyHashMap.rehash() does not grow enough
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-03-29
  • Updated: 2013-05-07
  • Resolved: 2013-03-31
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.
JDK 8
8 b86Fixed
Related Reports
Relates :  
Description
runtime.PropertyHashMap.rehash() currently adds a padding of 25% of the new size to the new element array size. However, to satisfy the three-quarters theshold it really needs to add 33.33%. 

This currently causes rehashing to take place with each added property for some table size ranges.
Comments
changeset: 149:a094fc010120 tag: tip user: jlaskey date: Sun Mar 31 08:19:11 2013 -0300 summary: 8011095: PropertyHashMap.rehash() does not grow enough
31-03-2013

Pre-changes GO, adding 8000 properties to an object DONE, added 8000 properties in 2162 ms, calling GC Consumed Memory 19.790145874023438 MB ==> Created global object, doing it again GO, adding 8000 properties to an object DONE, added 8000 properties in 5303 ms, calling GC Consumed Memory 477.7796936035156 MB Post-changes GO, adding 8000 properties to an object DONE, added 8000 properties in 2028 ms, calling GC Consumed Memory 19.74329376220703 MB ==> Created global object, doing it again GO, adding 8000 properties to an object DONE, added 8000 properties in 1516 ms, calling GC Consumed Memory 5.086639404296875 MB
30-03-2013

Simple issue. Table should grow exponentially.
30-03-2013