JDK-8035057 : NewSize ergonomics wrong when setting small or unaligned size on command line
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25,8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-02-17
  • Updated: 2014-07-29
  • Resolved: 2014-03-06
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 JDK 9
8u20Fixed 9 b20Fixed
Related Reports
Duplicate :  
Description
When NewSize is set on the command line it should be used as the value for both the min and initial size of young generation. This only hold true if the size given is aligned and large enough, otherwise the size will be re-aligned and set ergonomically. For an ergonomically set NewSize the value is used only for the min young generation size, and the initial size is scaled with NewRatio. 

ILW => LML => P5
Impact: Low, unexpected young size.
Likelihood: Medium, only happens when small or unaligned.
Workaround: Low, set an aligned size.
Comments
Marking with b19 resolved build since it is a JDK issue not INTJDK
01-07-2014

If backporting JDK-8033426 to 8u20, this fix must also be backported. Redoing the ILW due to better understanding. ILW => MHL => P3 Impact: Medium, the unexpected young size might have bad implications and it is a regression. Likelihood: High, it happens every time you set an unaligned size. Workaround: Low, make sure the size is aligned.
24-04-2014

Peter, your rules don't work, numbers need to be changed to ... (numbers are expected to change between runs) RULE tmtools/jmap/heap_config/jmap_heap_config_NewSize_core Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...' RULE tmtools/jmap/heap_config/jmap_heap_config_NewSize_live Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...' RULE tmtools/jmap/heap_config/jmap_heap_config_NewSize_core Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...' RULE tmtools/jmap/heap_config/jmap_heap_config_NewSize_live Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...' RULE tmtools/jmap/heap_config/jmap_heap_config_huge_NewSize_core Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...' RULE tmtools/jmap/heap_config/jmap_heap_config_huge_NewSize_live Exception nsk.share.TestFailure: Unexpected value of key NewSize: '...', expected '...'
26-02-2014