< prev index next >

src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp

Print this page
*** 64,11 ***
                                                                         RegionData* data, size_t size,
                                                                         size_t free) {
    size_t threshold = ShenandoahHeapRegion::region_size_bytes() * ShenandoahGarbageThreshold / 100;
  
    for (size_t idx = 0; idx < size; idx++) {
!     ShenandoahHeapRegion* r = data[idx]._region;
      if (r->garbage() > threshold) {
        cset->add_region(r);
      }
    }
  }
--- 64,11 ---
                                                                         RegionData* data, size_t size,
                                                                         size_t free) {
    size_t threshold = ShenandoahHeapRegion::region_size_bytes() * ShenandoahGarbageThreshold / 100;
  
    for (size_t idx = 0; idx < size; idx++) {
!     ShenandoahHeapRegion* r = data[idx].get_region();
      if (r->garbage() > threshold) {
        cset->add_region(r);
      }
    }
  }
< prev index next >