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

Add overloads for oop_iterate and friends with klass as an argument

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc

      Description

      oop_iterate and friends call another function with the arguments received plus the klass of the obj (this) argument. But some callers already have the klass in-hand for other reasons, and could pass it in as another argument. Since getting the klass is relatively expensive, this microoptimization may matter in some particularly performance sensitive contexts.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: