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

Adjust access checks for VM anonymous classes

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description

      Maurizio fixed a bunch of bugs with incorrect access checks for VM anonymous classes in Valhalla repo:
      http://hg.openjdk.java.net/valhalla/valhalla/hotspot/rev/06a7383a22cc
      http://hg.openjdk.java.net/valhalla/valhalla/jdk/rev/c28ea949f8cc

      Maurizio wrote:
      I basically implemented a logic where the access checks are performed on the entire chain of classes linked by the 'getHostClass' operation. This seems to work reliably, w/o any need for excluding classes defined in Unsafe.dAC from the access logic dance.

      The problems should be fixed in 9 as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                vlivanov Vladimir Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: