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

Create a test to verify that non-static final fields of a hidden class are trusted and optimized by C2

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 15
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      The non-static final fields declared in a hidden class are not modifiable even through reflection [1]. They are trusted non-static final fields that can be optimized by JIT.

      Need a regression test for that.

      [1] https://download.java.net/java/early_access/jdk15/docs/api/java.base/java/lang/reflect/Field.html#set(java.lang.Object,java.lang.Object)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dlong Dean Long
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: