...
A field may be declared
volatile
, in which case the Java memory model (§17§17) ensures that all threads see a consistent value for the variable.
...
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
References
Wiki Markup |
---|
\[[JLS 05|AA. Java References#JLS 05]\] |
...
CON02-J. Facilitate thread reuse by using Thread Pools 11. Concurrency (CON) CON04CON30-J. Do not call overridable methods from synchronized regionsSynchronize access to shared mutable variables