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

Add overloads for oop_iterate and friends with klass as an argument

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 16
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated: