[concurrency-interest] COWList snapshot.

Jason Mehrens jason_mehrens at hotmail.com
Wed Feb 19 11:18:44 EST 2014

Kasper, http://cs.oswego.edu/pipermail/concurrency-interest/2009-March/005935.html http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/CopyOnWriteArrayList.java?revision=1.115&view=markup Jason
 Date: Wed, 19 Feb 2014 16:37:50 +0100
Subject: Re: [concurrency-interest] COWList snapshot.
From: kasperni at gmail.com
To: jason_mehrens at hotmail.com
CC: ppozerov at gmail.com; concurrency-interest at cs.oswego.edu

On Wed, Feb 19, 2014 at 4:12 PM, Jason Mehrens <jason_mehrens at hotmail.com> wrote:


You can use the COWAL copy constructor which has a fast path for COWAL or use the clone method.

Doesn't really eliminate the unnecessary array copying?

I think an ImmutableList COWAL.snapshot() makes good sense.

- Kasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20140219/31f742cb/attachment.html>

More information about the Concurrency-interest mailing list