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

UnsafeStaticFieldAccessorImpl#base should be final

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P4
    • Resolution: Fixed
    • None
    • 8
    • core-libs

    Description

      Originally posted by Peter Levart at core-libs-dev@
      http://mail.openjdk.java.net/pipermail/core-libs-dev/2012-November/012498.html

      This is potentialiy severe issue since the FieldAccessors can be published via the race, which makes it unsafe to have non-final/non-volatile fields exposed in FieldAccessor. Peter had proposed a very simple fix:
      http://dl.dropbox.com/u/101777488/jdk8-hacks/UnsafeStaticFieldAccessorImpl.base/webrev/index.html

      Attachments

        Activity

          People

            chegar Chris Hegarty
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: