mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
8030646: track collection set membership in one place
Reviewed-by: tschatzl, jwilhelm
This commit is contained in:
parent
d0d14d12ca
commit
be4035c60a
8 changed files with 31 additions and 32 deletions
|
@ -234,6 +234,10 @@ inline bool G1CollectedHeap::is_in_cset(oop obj) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
bool G1CollectedHeap::is_in_cset(const HeapRegion* hr) {
|
||||
return _in_cset_fast_test.is_in_cset(hr);
|
||||
}
|
||||
|
||||
bool G1CollectedHeap::is_in_cset_or_humongous(const oop obj) {
|
||||
return _in_cset_fast_test.is_in_cset_or_humongous((HeapWord*)obj);
|
||||
}
|
||||
|
@ -242,7 +246,7 @@ InCSetState G1CollectedHeap::in_cset_state(const oop obj) {
|
|||
return _in_cset_fast_test.at((HeapWord*)obj);
|
||||
}
|
||||
|
||||
void G1CollectedHeap::register_humongous_region_with_in_cset_fast_test(uint index) {
|
||||
void G1CollectedHeap::register_humongous_region_with_cset(uint index) {
|
||||
_in_cset_fast_test.set_humongous(index);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue