[concurrency-interest] CopyOnWriteArrayNavigableSet too late for JEP 266?

Nathan Reynolds nathan.reynolds at oracle.com
Mon Oct 26 22:33:13 EDT 2015


There is a JDK bug on using sets for interning.  See 
https://bugs.openjdk.java.net/browse/JDK-8025414

-Nathan

On 10/24/2015 6:02 PM, Aaron Grunthal wrote:
> One useful advantage of Navigable-/SortedSet is that one can not only 
> test the presence of an element but also extract the matching element 
> by (ab)using the floor/ceil methods.
>
> Regular sets cannot be used for interning and a Map has the added 
> overhead/indirection with its Map.Entry objects.
>
>
> On 14.10.2015 14:41, Doug Lea wrote:
>> So, one question is whether all four of SortedArrayList, SortedArraySet,
>> SortedCopyOnWriteArrayList, and SortedCopyOnWriteArraySet should now be
>> introduced to fill in the coverage gaps. Or whether the use cases
>> covered by only SortedCopyOnWriteArraySet are special enough to
>> warrant inclusion without the others. This is the kind of question
>> that tends to lead to prolonged inaction in JDK. So any thoughts on
>> resolving it quickly would be welcome.
>
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
> http://cs.oswego.edu/mailman/listinfo/concurrency-interest
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20151026/605b2121/attachment.html>


More information about the Concurrency-interest mailing list