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

      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).

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

              Created:
              Updated:
              Resolved: