Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6888898
Votes 0
Synopsis CMS: ReduceInitialCardMarks unsafe in the presence of cms precleaning
Category hotspot:garbage_collector
Reported Against
Release Fixed hs17(b04), hs16(b11) (Bug ID:2184040) , 6u18(b04) (Bug ID:2184104) , 7(b75) (Bug ID:2184801)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 6506252 , 6851742 , 6889757 , 6892749
Submit Date 06-OCT-2009
Description
ReduceInitialCardMarks elides card marks for TLAB allocations
in young gen (fine for CMS), but for the case of slow-path allocation
makes up by card-marking the allocated  customer  (potentially in the
old gen) before initialization. This latter is unsafe wrt CMS' precleaning
which might scan the marked cards before they have been initialized
by the mutator and thus lose those updates.
Posted Date : 2009-10-06 23:35:28.0

Deleted incorrect comment/update here.
Posted Date : 2009-10-12 16:52:21.0
Work Around
-XX:-ReduceInitialCardMarks ??
The other possible workaround here (for CMS) is to switch off
pre-cleaning, thus:-

   -XX:-CMSPrecleaningEnabled

perhaps at the cost of much increased CMS remark pause times, however.
Evaluation
Yes.
Posted Date : 2009-10-08 19:39:49.0

Deleted incorrect update/comment here.
Posted Date : 2009-10-12 16:51:55.0

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/39b01ab7035a
Posted Date : 2009-10-16 11:31:58.0

http://hg.openjdk.java.net/hsx/hsx16/baseline/rev/aa001a20bd61
Posted Date : 2009-10-22 02:15:20.0

http://hg.openjdk.java.net/hsx/hsx16/master/rev/aa001a20bd61
Posted Date : 2009-10-22 08:06:38.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang