You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2021/07/12 08:34:00 UTC
[jira] [Created] (PHOENIX-6510) Double-Checked Locking field must
be volatile
Wei-Chiu Chuang created PHOENIX-6510:
----------------------------------------
Summary: Double-Checked Locking field must be volatile
Key: PHOENIX-6510
URL: https://issues.apache.org/jira/browse/PHOENIX-6510
Project: Phoenix
Issue Type: Bug
Reporter: Wei-Chiu Chuang
There are three places where the field used for double-checked locking isn't volatile. Change them to volatile to ensure thread-safety.
More details on the double-checked locking paradigm: https://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
--
This message was sent by Atlassian Jira
(v8.3.4#803005)