Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8315938 Deprecate for removal Unsafe methods that have standard APIs for many releases
  3. JDK-8316011

Release Note: `sun.misc.Unsafe park`, `unpark`, `getLoadAverage`, and `xxxFence` Methods Are Deprecated for Removal

    XMLWordPrintable

Details

    Description

      The `park`, `unpark`, `getLoadAverage`, `loadFence`, `storeFence`, and `fullFence` methods defined by `sun.misc.Unsafe` have been deprecated for removal.

      Code using these methods should move to `java.util.concurrent.locks.LockSupport.park/unpark` (Java 5), `java.lang.management.OperatingSystemMXBean.getSystemLoadAverage` (Java 6), and `java.lang.invoke.VarHandle.xxxFence` (Java 9).

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: