Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 2432:455328d90876
7029458: G1: Add newly-reclaimed regions to the beginning of the region free list, not the end
Summary: What the synopsis says.
Reviewed-by: jwilhelm, iveresov, johnc
author | tonyp |
---|---|
date | Tue, 29 Mar 2011 22:36:16 -0400 |
parents | 1216415d8e35 |
children | abdfc822206f |
comparison
equal
deleted
inserted
replaced
2431:02f49b66361a | 2432:455328d90876 |
---|---|
1059 void secondary_free_list_add_as_tail(FreeRegionList* list) { | 1059 void secondary_free_list_add_as_tail(FreeRegionList* list) { |
1060 _secondary_free_list.add_as_tail(list); | 1060 _secondary_free_list.add_as_tail(list); |
1061 } | 1061 } |
1062 | 1062 |
1063 void append_secondary_free_list() { | 1063 void append_secondary_free_list() { |
1064 _free_list.add_as_tail(&_secondary_free_list); | 1064 _free_list.add_as_head(&_secondary_free_list); |
1065 } | 1065 } |
1066 | 1066 |
1067 void append_secondary_free_list_if_not_empty_with_lock() { | 1067 void append_secondary_free_list_if_not_empty_with_lock() { |
1068 // If the secondary free list looks empty there's no reason to | 1068 // If the secondary free list looks empty there's no reason to |
1069 // take the lock and then try to append it. | 1069 // take the lock and then try to append it. |