提交 76382397 编写于 作者: P psandoz

8069302: Deprecate Unsafe monitor methods in JDK 8u release

Reviewed-by: forax, jrose
上级 ba0f1ebb
......@@ -846,12 +846,14 @@ public final class Unsafe {
throws InstantiationException;
/** Lock the object. It must get unlocked via {@link #monitorExit}. */
@Deprecated
public native void monitorEnter(Object o);
/**
* Unlock the object. It must have been locked via {@link
* #monitorEnter}.
*/
@Deprecated
public native void monitorExit(Object o);
/**
......@@ -859,6 +861,7 @@ public final class Unsafe {
* whether the lock succeeded. If it did, the object must be
* unlocked via {@link #monitorExit}.
*/
@Deprecated
public native boolean tryMonitorEnter(Object o);
/** Throw the exception without telling the verifier. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册