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.

Reply via email to