JDK-6948538 : CMS: BOT walkers can fall into object allocation and initialization cracks
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version:
    hs16,hs17,1.4.2,1.4.2_12,5.0u7,5.0u17,5.0u19,6u13,6u14,6u15,6u16,6u18,6u19,6u20,6u21 hs16,hs17,1.4.2,1.4.2_12,5.0u7,5.0u17,5.0u19,6u13,6u14,6u15,6u16,6u18,6u19,6u20,6u21
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris,solaris_10
  • CPU: generic,x86,sparc
  • Submitted: 2010-04-29
  • Updated: 2013-09-12
  • Resolved: 2011-04-23
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 JDK 7 Other
1.4.2_31,hs19Fixed 6u21pFixed 7Fixed hs19Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
BOT walkers can sometimes observe allocated-but-not-yet-fully initialized
objects, which can cause crashes during GC (both the concurrent as well
as the stop-world phases, with the latter much more likely).

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/be3f9c242c9d
17-08-2010

EVALUATION The introduction of necessary OrderAccess::storestore for this fix revealed a scaling issue which will be fixed in 6973570. Backports of this CR to older releases should make sure that such backports happen together with that of 6973570 to aovid any performance regressions that would be seen if only the fix for this CR is backported.
30-07-2010

WORK AROUND Since the bug depends on concurrent ccard-scanning with promotion into CMS, which can only happen when using ParNew+CMS, either of the following constitutes a workaround:- (a) switch off CMS, OR (b) switch off ParNew of course, depending on platform, at potentially considerable loss in performance.
29-04-2010

EVALUATION See 6872049 for some more background, the relevant portion of which will be copied into this CR (by and by).
29-04-2010