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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-valhalla
    • repo-valhalla
    • core-libs
    • None

      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;

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

              Created:
              Updated:
              Resolved: