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

Unnecessary InstanceKlass::cast at few places

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      In src/hotspot/share/classfile/verifier.cpp, the following InstanceKlass::cast is unnecessary since current_class() already returns a InstanceKlass*

      2020 InstanceKlass* cur_class = InstanceKlass::cast(current_class());

      Similar unnecessary InstanceKlass::cast can be found in:
              src/hotspot/share/interpreter/interpreterRuntime.cpp
              src/hotspot/share/interpreter/linkResolver.cpp

        Attachments

          Activity

            People

            Assignee:
            ccheung Calvin Cheung
            Reporter:
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: