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

Eliminate cast_from_oop to narrowOop*

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • hotspot
    • gc
    • b11

      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*>().

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

              Created:
              Updated:
              Resolved: