Re: Why SynchronousQueue.TransferQueue#clean() not clean the last node

Liu via Concurrency-interest <[email protected]> Mon, 17 Aug 2020 10:13:33 +0800 (CST)
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <[email protected]>


I try to understand what you guys are saying.


Firstly,    A -> B -> C(tail) -> null, and if C should be cleaned,
 it should become A -> B(tail)  -> null. but there is No such atomic operation.


Secondly, some threads may see A -> B  -> null and C(tail), and may append node
after C which is wrong.

_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest