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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: 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;

            Assignee:
            Mandy Chung (Inactive)
            Reporter:
            Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: