< prev index next >
src/hotspot/share/gc/g1/g1CollectedHeap.inline.hpp
Print this page
@@ -179,11 +179,11 @@
_region_attr.set_has_remset(r->hrm_index(), r->rem_set()->is_tracked());
}
void G1CollectedHeap::register_old_region_with_region_attr(HeapRegion* r) {
_region_attr.set_in_old(r->hrm_index(), r->rem_set()->is_tracked());
- _rem_set->prepare_for_scan_heap_roots(r->hrm_index());
+ _rem_set->exclude_region_from_scan(r->hrm_index());
}
void G1CollectedHeap::register_optional_region_with_region_attr(HeapRegion* r) {
_region_attr.set_optional(r->hrm_index(), r->rem_set()->is_tracked());
}
@@ -297,10 +297,14 @@
inline bool G1CollectedHeap::is_humongous_reclaim_candidate(uint region) {
assert(_hrm->at(region)->is_starts_humongous(), "Must start a humongous object");
return _humongous_reclaim_candidates.is_candidate(region);
}
+inline void G1CollectedHeap::set_has_humongous_reclaim_candidate(bool value) {
+ _has_humongous_reclaim_candidates = value;
+}
+
inline void G1CollectedHeap::set_humongous_is_live(oop obj) {
uint region = addr_to_region((HeapWord*)obj);
// Clear the flag in the humongous_reclaim_candidates table. Also
// reset the entry in the region attribute table so that subsequent references
// to the same humongous object do not go into the slow path again.
< prev index next >