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

[JVMCI] remove final and stable field handling from ConstantReflectionProvider

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b122

      Description

      The following methods should be removed from ConstantReflectionProvider:
      - readConstantArrayElement
      - readConstantArrayElementForOffset
      - readConstantFieldValue
      - readStableFieldValue

      These methods contain a lot of logic that clearly belongs in the compiler, not in the VM. Different compilers might even want to implement this logic differently (see e.g. JDK-8154765).

      The logic in these methods can be easily implemented using the remaining methods.

        Attachments

          Activity

            People

            • Assignee:
              rschatz Roland Schatz
              Reporter:
              rschatz Roland Schatz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: