< prev index next >

src/java.base/share/classes/java/util/concurrent/locks/Lock.java

Print this page
8229442: AQS and lock classes refresh
Reviewed-by: martin

*** 120,132 **** * <h2>Memory Synchronization</h2> * * <p>All {@code Lock} implementations <em>must</em> enforce the same * memory synchronization semantics as provided by the built-in monitor * lock, as described in - * <a href="https://docs.oracle.com/javase/specs/jls/se11/html/jls-17.html#jls-17.4"> * Chapter 17 of ! * <cite>The Java&trade; Language Specification</cite></a>: * <ul> * <li>A successful {@code lock} operation has the same memory * synchronization effects as a successful <em>Lock</em> action. * <li>A successful {@code unlock} operation has the same * memory synchronization effects as a successful <em>Unlock</em> action. --- 120,131 ---- * <h2>Memory Synchronization</h2> * * <p>All {@code Lock} implementations <em>must</em> enforce the same * memory synchronization semantics as provided by the built-in monitor * lock, as described in * Chapter 17 of ! * <cite>The Java&trade; Language Specification</cite>: * <ul> * <li>A successful {@code lock} operation has the same memory * synchronization effects as a successful <em>Lock</em> action. * <li>A successful {@code unlock} operation has the same * memory synchronization effects as a successful <em>Unlock</em> action.
*** 160,169 **** --- 159,169 ---- * the thread. An implementation should document this behavior. * * @see ReentrantLock * @see Condition * @see ReadWriteLock + * @jls 17.4 Memory Model * * @since 1.5 * @author Doug Lea */ public interface Lock {
< prev index next >