United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7023151 G1: refactor the code that operates on _cur_alloc_region to be re-used for allocs by the GC threads
JDK-7023151 : G1: refactor the code that operates on _cur_alloc_region to be re-used for allocs by the GC threads

Details
Type:
Enhancement
Submit Date:
2011-02-28
Status:
Closed
Updated Date:
2011-04-24
Project Name:
JDK
Resolved Date:
2011-04-24
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs21
Fixed Versions:
hs21 (b08)

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
Currently we have two versions of code that attempts to satisfy parallel allocation requests out of a heap region and attempts to replace said heap region when it's full:

a) One version is for allocations by mutator threads.
b) Another version is for allocations by GC threads (i.e., when they need to copy objects from from- to to-space).

It'd be helpful to consolidate these two versions and have a single version of the code shared by the two paths above. This CR proposes the refactoring of the code of path a) in a separate class (G1AllocRegion). This is one step towards sharing this code by path b) (this will be done as a separate CR in the future).

                                    

Comments
EVALUATION

See Description.
                                     
2011-02-28
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/abdfc822206f
                                     
2011-03-30



Hardware and Software, Engineered to Work Together