1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionSet.hpp Mon Mar 28 10:58:54 2011 -0700 1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionSet.hpp Tue Mar 29 22:36:16 2011 -0400 1.3 @@ -277,6 +277,10 @@ 1.4 } 1.5 1.6 public: 1.7 + // It adds hr to the list as the new head. The region should not be 1.8 + // a member of another set. 1.9 + inline void add_as_head(HeapRegion* hr); 1.10 + 1.11 // It adds hr to the list as the new tail. The region should not be 1.12 // a member of another set. 1.13 inline void add_as_tail(HeapRegion* hr); 1.14 @@ -290,6 +294,11 @@ 1.15 1.16 // It moves the regions from from_list to this list and empties 1.17 // from_list. The new regions will appear in the same order as they 1.18 + // were in from_list and be linked in the beginning of this list. 1.19 + void add_as_head(HeapRegionLinkedList* from_list); 1.20 + 1.21 + // It moves the regions from from_list to this list and empties 1.22 + // from_list. The new regions will appear in the same order as they 1.23 // were in from_list and be linked in the end of this list. 1.24 void add_as_tail(HeapRegionLinkedList* from_list); 1.25