JDK-2139444 : CMS: NewRatio ignored in the setting of NewSize and MaxNewSize
  • Type: Backport
  • Backport of: JDK-6427025
  • Component: hotspot
  • Sub-Component: gc
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2006-06-20
  • Updated: 2010-04-03
  • Resolved: 2006-08-09
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.
Other JDK 6
5.0u10 b01Fixed 6Fixed
Comments
SUGGESTED FIX Webrev: http://analemma.sfbay.sun.com/net/prt-archiver.sfbay/data/archived_workspaces/1.5/tiger_update9_baseline/2006/20060727103936.asaha.hotspot/workspace/webrevs/webrev-2006.07.27/index.html Webrev: http://jpsesvr.sfbay.sun.com:8080/ctetools/CodeStore/1874/webrev/webrev.html ====================================== Fixed 6427025: CMS: NewRatio ignored in the setting of NewSize and MaxNewSize [###@###.###,###@###.### Brief Description of the problem being fixed : The -XX:NewRatio does not work and we are forced to use explicitly the -Xmn option or setting XX:MaxNewSize and XX: NewSize to the same value showing limitations when using the specific GC collector indicated (ParNewGC and CMSUseMarkSweepGC) Use -XX:NewSize -XX:MaxNewSize explicitly because CMS otherwise defaults these to what it considers to be "typical" values. It also sets NewRatio differently from the serial collector unless the user explicitly sets it. Platform affected : ALL Does this fix need Forward ported ? NO Fixed by : ###@###.### Backported by : ###@###.### Putback by : ###@###.### Code Reviewed by (2 reviewers required) : ###@###.###,###@###.### Is this fix for a JPSE introduced regression ? NO Is the testcase(if available) provided for the regression testbase ? NO Has this fix been verified by customer(s) ? NA Test information : java -XX:+UseConcMarkSweepGC -XX:NewRatio=4 -Xms100M -Xmx100M -XX:+PrintGCDetail s ... (for example, jbb) will show that NewRatio is now respected (you'll get a young gen of 20MB). It previously was not respected Files: update: src/share/vm/runtime/arguments.cpp Examined files: 3718
27-07-2006

EVALUATION see parent cr.
20-06-2006