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

Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter

    Details

    • Subcomponent:
    • Resolved In Build:
      b49

      Backports

        Description

        Analysis of the use of methods sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter on jars in maven central indicates they are not widely used (mostly just one artifact and that is only required to work around a class loading issue on Java 6).

        It is proposed these methods be removed. See the discussion on core-libs:

        http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/thread.html#25349

        Preliminary patches are here:

          http://cr.openjdk.java.net/~psandoz/jdk9/jdk-unsafe-cleanup/webrev/
          http://cr.openjdk.java.net/~psandoz/jdk9/hotspot-unsafe-cleanup/webrev/

        Plus another that removes prefetch code that no longer appears to be used:

          http://cr.openjdk.java.net/~psandoz/jdk9/hotspot-unsafe-prefetch-cleanup/webrev/

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psandoz Paul Sandoz (Inactive)
                  Reporter:
                  psandoz Paul Sandoz (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: