< prev index next >

src/hotspot/share/gc/parallel/parallelScavengeHeap.inline.hpp

Print this page
*** 41,11 ***
  
  inline void ParallelScavengeHeap::invoke_scavenge() {
    PSScavenge::invoke();
  }
  
! inline bool ParallelScavengeHeap::is_in_young(oop p) {
    // Assumes the the old gen address range is lower than that of the young gen.
    bool result = cast_from_oop<HeapWord*>(p) >= young_gen()->reserved().start();
    assert(result == young_gen()->is_in_reserved(p),
           "incorrect test - result=%d, p=" PTR_FORMAT, result, p2i((void*)p));
    return result;
--- 41,11 ---
  
  inline void ParallelScavengeHeap::invoke_scavenge() {
    PSScavenge::invoke();
  }
  
! inline bool ParallelScavengeHeap::is_in_young(oop p) const {
    // Assumes the the old gen address range is lower than that of the young gen.
    bool result = cast_from_oop<HeapWord*>(p) >= young_gen()->reserved().start();
    assert(result == young_gen()->is_in_reserved(p),
           "incorrect test - result=%d, p=" PTR_FORMAT, result, p2i((void*)p));
    return result;
< prev index next >