United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7146343 PS invoke methods should indicate the type of gc done
7146343 : PS invoke methods should indicate the type of gc done

Details
Type:
Bug
Submit Date:
2012-02-16
Status:
Closed
Updated Date:
2012-03-24
Project Name:
JDK
Resolved Date:
2012-03-24
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs23
Fixed Versions:
hs23

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
The ParallelGC invoke() and invoke_no_policy() methods should return a value to indicate whether a gc was done or not.  When different types of collections can occur, the return value should indicate the type of collection.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/ab4422d0ed59
                                     
2012-03-22
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/ab4422d0ed59
                                     
2012-02-18
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/ab4422d0ed59
                                     
2012-02-17
EVALUATION

The simplest solution is to return a boolean indicating whether a gc was done.  PSScavenge::invoke() is different in that it can invoke a young gc, full gc, or no gc (i.e., if GCLocker has locked out gc).  Returning true if a full gc was done and false otherwise is enough to satisfy current needs.  That is slightly quirky, but will be revisited.
                                     
2012-02-16



Hardware and Software, Engineered to Work Together