United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6908215 G1: SEGV with G1PolicyVerbose=2 debug flag
JDK-6908215 : G1: SEGV with G1PolicyVerbose=2 debug flag

Details
Type:
Bug
Submit Date:
2009-12-08
Status:
Resolved
Updated Date:
2010-04-06
Project Name:
JDK
Resolved Date:
2010-02-08
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs17 (b06)

Related Reports
Backport:

Sub Tasks

Description
While investigating 6899058 and 6902155 I turned on the G1PolicyVerbose flag by setting it to '2' in order to get verbose information about the various HeapRegions and their particular roles (young, survivor, non-young, gc-alloc etc) while running the test case.

Setting G1PolicyVerbose=2 causes a SIGSEGV in CollectionSetChooser::printSortedHeapRegions.

The code in that routine does not take into account that there are null entries in the _markedRegions growable array. If we look at the verify routine, only the entires between _curMarkedIndex and _numMarkedRegions are non-null.

                                    

Comments
EVALUATION

See description.
                                     
2009-12-08
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/9dc2adf2cbe0
                                     
2009-12-10



Hardware and Software, Engineered to Work Together