8030646: track collection set membership in one place

Reviewed-by: tschatzl, jwilhelm
This commit is contained in:
Erik Helin 2015-01-26 10:32:35 +01:00
parent d0d14d12ca
commit be4035c60a
8 changed files with 31 additions and 32 deletions

View file

@ -236,8 +236,6 @@ class HeapRegion: public G1OffsetTableContigSpace {
// For a humongous region, region in which it starts.
HeapRegion* _humongous_start_region;
// True iff the region is in current collection_set.
bool _in_collection_set;
// True iff an attempt to evacuate an object in the region failed.
bool _evacuation_failed;
@ -487,13 +485,8 @@ class HeapRegion: public G1OffsetTableContigSpace {
return _rem_set;
}
// True iff the region is in current collection_set.
bool in_collection_set() const {
return _in_collection_set;
}
void set_in_collection_set(bool b) {
_in_collection_set = b;
}
bool in_collection_set() const;
HeapRegion* next_in_collection_set() {
assert(in_collection_set(), "should only invoke on member of CS.");
assert(_next_in_special_set == NULL ||