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

Optimize oop scan closure closures wrt to reference processing in G1

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b11

      Description

      G1 oop scan closures inherit from G1ScanClosureBase that sets the java.lang.ref.reference reference_iteration_mode to DO_DISCOVERED_AND_DISCOVERY.

      However most of these closures always have a NULL reference processing closure, so there is no point in trying to do discovery. While the impact is only an additional NULL check for InstanceRefKlass instances, it is unnecessary.

      Look through G1 oop scan closures and set the correct reference_iteration_mode for them (i.e. DO_FIELDS).

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: