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

Move trusted final field handling from C2 LoadNode::Value to shared code

    Details

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

      Description

      Currently, C2 has its own constant folding for final fields in primitive boxes and String in LoadNode::Value. But for quite some time now, we have a shared infra in CI that communicates what final fields in JDK can be trusted by compilers. As the cleanup, we'd want to remove the C2-specific handling, and instead spell out these special cases in shared code. The side benefit would be C1 picking up optimizations too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: