< prev index next > src/hotspot/share/gc/g1/g1FullGCPrepareTask.inline.hpp
Print this page
#include "gc/g1/g1CollectedHeap.inline.hpp"
#include "gc/g1/g1FullCollector.hpp"
#include "gc/g1/g1FullGCCompactionPoint.hpp"
#include "gc/g1/g1FullGCScope.hpp"
#include "gc/g1/g1HeapRegion.inline.hpp"
+ #include "gc/shared/slidingForwarding.inline.hpp"
void G1DetermineCompactionQueueClosure::free_empty_humongous_region(G1HeapRegion* hr) {
_g1h->free_humongous_region(hr, nullptr);
_collector->set_free(hr->hrm_index());
add_to_compaction_queue(hr);
return false;
}
inline size_t G1SerialRePrepareClosure::apply(oop obj) {
- if (obj->is_forwarded()) {
+ if (SlidingForwarding::is_forwarded(obj)) {
// We skip objects compiled into the first region or
// into regions not part of the serial compaction point.
- if (cast_from_oop<HeapWord*>(obj->forwardee()) < _dense_prefix_top) {
+ if (cast_from_oop<HeapWord*>(SlidingForwarding::forwardee(obj)) < _dense_prefix_top) {
return obj->size();
}
}
// Get size and forward.
< prev index next >