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

Remove unnecessary reinterpret_cast from C2AccessValuePtr

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 11, 17, 21, 24
    • hotspot
    • b24

      C2AccessValuePtr contains a reinterpret cast from TypePtr* to its base class Type*. This cast was added in JDK-8202377, due to a circular dependency problem, which no longer exists. The code compiles fine without it and this cast should be removed.

      Furthermore, a downcast from Type* to TypePtr* exists in this class using reinterpret_cast. This should be replaced with the less powerful static_cast.

            tweidmann Theo Weidmann (Inactive)
            tweidmann Theo Weidmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: