< prev index next >

src/hotspot/share/prims/whitebox.cpp

Print this page
*** 431,11 ***
      }
    }
  #endif
  #if INCLUDE_SHENANDOAHGC
    if (UseShenandoahGC) {
!     return Universe::heap()->is_in(p);
    }
  #endif
  #if INCLUDE_SERIALGC
    if (UseSerialGC) {
      return !SerialHeap::heap()->is_in_young(p);
--- 431,12 ---
      }
    }
  #endif
  #if INCLUDE_SHENANDOAHGC
    if (UseShenandoahGC) {
!     ShenandoahHeap* sh = ShenandoahHeap::heap();
+     return sh->mode()->is_generational() ?  sh->is_in_old(p) : sh->is_in(p);
    }
  #endif
  #if INCLUDE_SERIALGC
    if (UseSerialGC) {
      return !SerialHeap::heap()->is_in_young(p);
< prev index next >