You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Regis <xu...@gmail.com> on 2009/09/29 11:13:58 UTC
Re: [jira] Created: (HARMONY-6344) Provide a lock-free version of
ReferenceQueue
James Gan (JIRA) wrote:
> Provide a lock-free version of ReferenceQueue
> ---------------------------------------------
>
> Key: HARMONY-6344
> URL: https://issues.apache.org/jira/browse/HARMONY-6344
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Affects Versions: 6.0M1
> Environment: Any modern multi-core environment
> Reporter: James Gan
> Fix For: 6.0M1
> Attachments: amino_rfq.zip
>
> In Harmony, the original ReferenceQueue is a lock-base queue, which doesn't scale well on multi-core environment. Here I attached an lock-free version of ReferenceQueue based on Amino Library, which has better scalability than original queue
>
Cool James!!!
Just quick glance, some questions:
1. Does ReferenceQueueLF mean to replace java.lang.ref.ReferenceQueue?
2. I notice that the new implementation reference files from Amino,
org.amino.ds.lockfree.LockFreeQueue and org.amino.ds.lockfree.SinglePollQueue,
do you mean contribute them to Harmony together?
--
Best Regards,
Regis.
Re: [jira] Created: (HARMONY-6344) Provide a lock-free version of
ReferenceQueue
Posted by Tim Ellison <t....@gmail.com>.
On 29/Sep/2009 10:13, Regis wrote:
> James Gan (JIRA) wrote:
>> Provide a lock-free version of ReferenceQueue
>> ---------------------------------------------
>>
>> Key: HARMONY-6344
>> URL: https://issues.apache.org/jira/browse/HARMONY-6344
>> Project: Harmony
>> Issue Type: Improvement
>> Components: Classlib
>> Affects Versions: 6.0M1
>> Environment: Any modern multi-core environment
>> Reporter: James Gan
>> Fix For: 6.0M1
>> Attachments: amino_rfq.zip
>>
>> In Harmony, the original ReferenceQueue is a lock-base queue, which
>> doesn't scale well on multi-core environment. Here I attached an
>> lock-free version of ReferenceQueue based on Amino Library, which has
>> better scalability than original queue
>>
>
> Cool James!!!
>
> Just quick glance, some questions:
>
> 1. Does ReferenceQueueLF mean to replace java.lang.ref.ReferenceQueue?
> 2. I notice that the new implementation reference files from Amino,
> org.amino.ds.lockfree.LockFreeQueue and
> org.amino.ds.lockfree.SinglePollQueue, do you mean contribute them to
> Harmony together?
I agree that it would be cool to get the lock free queue into Harmony;
however, there are a few questions regarding this contribution that Mark
has detailed directly in the JIRA.
Regards,
Tim