JDK-6679764 : enable parallel compaction by default
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs13
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-03-25
  • Updated: 2017-05-16
  • Resolved: 2012-02-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.
JDK 7 JDK 8 Other
7u4Fixed 8Fixed hs23Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Server-class machine ergonomics was introduced in jdk5.  If the machine upon which
the jvm is running is powerful enough (currently, at least 2 physical cores plus
at least 2gb of memory), the server jvm is invoked using the parallel scavenger
rather than the serial scavenger.  Currently the old gen collector used is
serial mark-sweep-compact.  Now that the parallel old gen collector is mature,
we should change to using it instead.

Comments
EVALUATION The information has been added to the Java SE 7u4 Release Notes as a JVM feature.
25-04-2012

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/24cae3e4cbaa
22-03-2012

EVALUATION After review and some discussion, went with the solution in the first entry: if UseParallelGC is enabled, then enable UseParallelOldGC (unless it has been otherwise disabled via the command line or rc file). Relatedly, if UseParallelOldGC is enabled, then enable UseParallelGC (this is done unconditionally, since UseParallelOldGC requires UseParallelGC).
03-02-2012

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/24cae3e4cbaa
03-02-2012

EVALUATION What I actually had in mind was for server ergo to set UseParallelOldGC, which would set UseParallelGC automatically. I think that if only UseParallelGC is specified on the command line, the user should still get what he/she gets now, which is serial old + parallel young. If both UseParallelOldGC and UseParallelGC are specified in any order, the same thing happens as now, which is parallel old + parallel young. Inother words, I think that everything should work exactly as it does now, except that server ergo should set UseParallelOldGC rather than UseParallelGC.
14-04-2008

EVALUATION The argument-processing semantics are simple, but not completely trivial. The current behavior is that if -XX:+UseParallelOldGC is specified on the command-line, it automatically enables -XX:+UseParallelGC (parallel young gc). This should be preserved. This RFE adds the behavior that when -XX:+UseParallelGC is enabled, either by ergonomics or explicitly on the command line, that -XX:+UseParallelOldGC is also enabled. The only question is what the arg processing code should do with the command line: java -XX:-UseParallelOldGC -XX:+UseParallelGC ... The relevant point is that -XX:-UseParallelOldGC occurs before -XX:+UseParallelGC. The convention for hotspot argument processing is "last one wins" and one could reasonably interpret -XX:+UseParallelGC as implying -XX:+UseParallelOldGC. Doing so would cause the above command line to enable UseParallelOldGC. While it's reasonable, it's not particularly intuitive or user friendly. I think the best choice for the above command line would be to disable UseParallelOldGC.
14-04-2008