United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7110718 -XX:MarkSweepAlwaysCompactCount=0 crashes the JVM
7110718 : -XX:MarkSweepAlwaysCompactCount=0 crashes the JVM

Details
Type:
Bug
Submit Date:
2011-11-10
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2012-01-20
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs23
Fixed Versions:
hs23

Related Reports
Backport:
Backport:

Sub Tasks

Description
Running hotspot with "-XX:+UseConcMarkSweepGC -XX:MarkSweepAlwaysCompactCount=0" will crash the VM.

Email from Ramki:

It's because MaxSweepAlwaysCompactCount is used to divide the (serial old) gc count and gives a divide
by zero exception when set to zero. Perhaps the flag should be set to a  minimum value of 1 in
Arguments::check_vm_args_consistency()? If folks agree, could someone file a CR (and
if you prefer i can submit a simple patch).

                                    

Comments
EVALUATION

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

http://hg.openjdk.java.net/hsx/hotspot-emb/hotspot/rev/d06a2d7fcd5b
                                     
2011-12-15
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/d06a2d7fcd5b
                                     
2011-11-21



Hardware and Software, Engineered to Work Together