< prev index next >

src/hotspot/share/gc/g1/g1FullGCPrepareTask.inline.hpp

Print this page
*** 30,10 ***
--- 30,11 ---
  #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);

*** 112,14 ***
  
    return false;
  }
  
  inline size_t G1SerialRePrepareClosure::apply(oop obj) {
!   if (obj->is_forwarded()) {
      // 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) {
        return obj->size();
      }
    }
  
    // Get size and forward.
--- 113,14 ---
  
    return false;
  }
  
  inline size_t G1SerialRePrepareClosure::apply(oop obj) {
!   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*>(SlidingForwarding::forwardee(obj)) < _dense_prefix_top) {
        return obj->size();
      }
    }
  
    // Get size and forward.
< prev index next >