Re: why the last thread must sweep to check every slot again?

Doug Lea via Concurrency-interest <[email protected]> Sun, 19 Jul 2020 06:33:10 -0400
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <[email protected]>
You are right that the post-scan is non-optional. As I mentioned, 
rechecking that it is never needed and possibly removing is on the todo 
list for next update. (Because it only impacts one step of resize, the 
performance impact is relatively low.)

On 7/17/20 12:11 PM, Liu wrote:
> Thanks for answer! But I think in every resize process, the last 
> thread will trigger to check every slot again surely, not just 
> possibly. Even when only one thread to invoke the transfer func, this 
> thread also do the recheck in the end. Am I wrong?
>
> -Liu
_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest