hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Honghua (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-10693) Correct declarations of Atomic* fields from 'volatile' to 'final'
Date Thu, 06 Mar 2014 05:39:42 GMT
Feng Honghua created HBASE-10693:

             Summary: Correct declarations of Atomic* fields from 'volatile' to 'final'
                 Key: HBASE-10693
                 URL: https://issues.apache.org/jira/browse/HBASE-10693
             Project: HBase
          Issue Type: Improvement
          Components: io, master
            Reporter: Feng Honghua
            Assignee: Feng Honghua
            Priority: Minor

By checking the usage of these Atomic* fields, they themselves don't change once being assigned
to referencing an Atomic* object, so 'final' rather than 'volatile' is more proper.
On the other hand, the 'value' encapsulated in Atomic* is already declared 'volatile', while
guarantees to perform correctly in multi-threads scenarios.

This message was sent by Atlassian JIRA

View raw message