[cvs] / jsr166 / src / main / java / util / concurrent / LinkedTransferQueue.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/concurrent/LinkedTransferQueue.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.120, Wed Dec 28 02:24:17 2016 UTC revision 1.121, Wed Dec 28 18:07:18 2016 UTC
# Line 454  Line 454 
454           * only after CASing head field, so uses relaxed write.           * only after CASing head field, so uses relaxed write.
455           */           */
456          final void forgetNext() {          final void forgetNext() {
457              NEXT.set(this, this);              NEXT.setRelease(this, this);
458          }          }
459    
460          /**          /**
# Line 462  Line 462 
462           * to avoid garbage retention after matching or cancelling.           * to avoid garbage retention after matching or cancelling.
463           * Uses relaxed writes because order is already constrained in           * Uses relaxed writes because order is already constrained in
464           * the only calling contexts: item is forgotten only after           * the only calling contexts: item is forgotten only after
465           * volatile/atomic mechanics that extract items.  Similarly,           * volatile/atomic mechanics that extract items, and visitors
466           * clearing waiter follows either CAS or return from park (if           * of request nodes only ever check whether item is null.
467           * ever parked; else we don't care).           * Similarly, clearing waiter follows either CAS or return
468             * from park (if ever parked; else we don't care).
469           */           */
470          final void forgetContents() {          final void forgetContents() {
471              // assert isMatched();              // assert isMatched();

Legend:
Removed from v.1.120  
changed lines
  Added in v.1.121

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8