JDK-6850846 : G1: extend G1 marking verification
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs16,7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-06-12
  • Updated: 2013-09-18
  • Resolved: 2009-06-30
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 6 JDK 7 Other
6u18Fixed 7Fixed hs16Fixed
Related Reports
Relates :  
Description
G1 uses two different versions of the marking information:

- "prev" is the last one completed (which is guaranteed to be consistent and complete, i.e., no live object should be pointing to a dead object, but maybe no up-to-date) and
- "next" is the marking information that is being computed next (and which might be incomplete, as we might be half-way through completing it)

Heap verification in G1 also checks the consistency of the "prev" marking information (given that it's the only marking information that we can trust to be complete). However, we would also like to check the consistency of the "next" marking information at the only place where we can, which is the end of the remark phase. 

This CR proposes to change the G1 verification code to either use the "prev" or "next" marking info, depending on what the caller needs.

Additionally, it adds verification of the "next" marking info at the end of the remark (conditional on the VerifyDuringGC flag) and removes the #ifndef PRODUCT from the verification at the end of cleanup (it's good to be able to do heap / marking verification in a product build).

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/830ca2573896
19-06-2009

EVALUATION See Description.
12-06-2009