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

Eliminate cast_from_oop to narrowOop*

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b11

      Description

      ObjArrayKlass::oop_oop_iterate_range conditionally calls cast_from_oop with a template parameter of oop* or narrowOop*. Casting an oop to either of those types seems pretty questionable, and is not actually necessary here. Removing that conditional cast would eliminate the only use of cast_from_oop<narrowOop*>().

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: