RFR: Generational/LRU partial heuristics take two...

Zhengyu Gu zgu at redhat.com
Fri Jul 21 14:29:14 UTC 2017


shenandoahPartialGC.cpp:

  234   for (uint from_idx = 0; from_idx < num_regions; from_idx++) {
  235     ShenandoahHeapRegion* r = regions->get(from_idx);
  236     if (r->is_empty()) {
  237       _free_regions->add_region(r);
  238     } else if (r->is_root() && !r->in_collection_set()) {
  239       _root_regions->add_region(r);
  240       matrix->clear_region_outbound(from_idx);
  241     }
  242   }

So we no longer reuse partial emptied regions?


shenandoahHeap.hpp: #524 - 526

Should variables be private? also merge two public sections.



Thanks,

-Zhengyu






On 07/20/2017 04:38 PM, Christine Flood wrote:
> http://cr.openjdk.java.net/~chf/GenerationalPartialGC/webrev.00/
>


More information about the shenandoah-dev mailing list