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

Unnecessary InstanceKlass::cast at few places

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • None
    • b23

      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

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

              Created:
              Updated:
              Resolved: