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

Re-examine if a hidden class should trust final non static fields

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:
      None

      Description

      In the current prototype, in ciField.cpp:
          static bool trust_final_non_static_fields(ciInstanceKlass* holder) {
             :
             // Trust VM hidden and unsafe anonymous classes. They are created via Lookup.defineClass or
            // the private API (jdk.internal.misc.Unsafe) and can't be serialized, so there is no hacking
            // of finals going on with them.
           if (holder->is_hidden() || holder->is_unsafe_anonymous())
              return true;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: