-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b49
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082812 | emb-9 | Paul Sandoz | P4 | Resolved | Fixed | team |
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/
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/
- backported by
-
JDK-8082812 Remove sun.misc.Unsafe.monitorEnter, monitorExit and tryMonitorEnter
- Resolved
- relates to
-
JDK-8157055 consider unified release notes for deprecated APIs
- Closed
-
JDK-8069302 Deprecate Unsafe monitor methods in JDK 8u release
- Resolved