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

Remove G1ParScanPartialArrayClosure and G1ParScanHeapEvacClosure

XMLWordPrintable

    • gc
    • b08

        Above mentioned "closures" are in reality just methods (do_oop_nv()) wrapped into the Closure abstraction.

        This confuses readers, and adds lots of boiler plate code (closure definition and instantiations) in the process.

        Also for whatever reason, G1ParScanHeapEvacClosure is part of the specializations for oop_oop_iterate() (probably because of the confusion).

        Move them to G1ParScanThreadState which is the only place where they are referenced as methods.

        This also allows small optimizations.

              tschatzl Thomas Schatzl
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: