Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8241067

Shenandoah: improve ShenandoahNMethod::has_cset_oops arguments

XMLWordPrintable

    • gc
    • b16

      Static analyzers say heap argument is unused here:

      bool ShenandoahNMethod::has_cset_oops(ShenandoahHeap *heap) {
        ShenandoahHasCSetOopClosure cl;
        oops_do(&cl);
        return cl.has_cset_oops();
      }

      ShenandoahHasCSetOopClosure gets the heap in its own constructor. Either we should drop the parameter from SHNM::has_cset_oops, or we should pass it to ShenandoahHasCSetOopClosure, depending on which produces the better code.

            adityam Aditya Mandaleeka
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: