United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6547371 Guard at end of card table can be overwritten.
JDK-6547371 : Guard at end of card table can be overwritten.

Details
Type:
Bug
Submit Date:
2007-04-18
Status:
Resolved
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2007-05-24
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b13)

Related Reports
Backport:
Backport:

Sub Tasks

Description
When the card table is resized (for example committing space for the card table at
initiation) the guard card at the end of the card table can be overwritten due to
rounding up for page alignment and a commit_memory() call over the region including
the guard card.

This affects assertion checking and verification of the card table.  It does not 
affect the product builds unless verification is being used.

                                    

Comments
EVALUATION

When resize_covered_region() is called, a call to commit_memory() can result
where the region passed to commit_memory() includes the guard card.  The guard
card is cleared of the last_card value as a side effect of the commit_memory().
                                     
2007-04-18



Hardware and Software, Engineered to Work Together