Benoy Antony created HADOOP-10593:
-------------------------------------

             Summary: Concurrency Improvements
                 Key: HADOOP-10593
                 URL: https://issues.apache.org/jira/browse/HADOOP-10593
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: Benoy Antony
            Assignee: Benoy Antony


This is an umbrella jira to improve the concurrency of a few classes by making 
use of safe publication idioms. Most of the improvements are based on the 
following:
{panel}
To publish an object safely, both the reference to the object and the object's 
state must be made visible to other threads at the same time. A properly 
constructed object can be safely published by:


* Initializing an object reference from a static initializer;
* Storing a reference to it into a volatile field or AtomicReference;
* Storing a reference to it into a final field of a properly constructed 
object; or
* Storing a reference to it into a field that is properly guarded by a lock.
{panel}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to