issues
search
manuzhang
/
read-it-now
Don't read it later; read it now
4
stars
0
forks
source link
java.math.BigDecimal toString is not thread safe
#14
Open
manuzhang
opened
7 years ago
manuzhang
commented
7 years ago
Article
http://vmlens.com/articles/java-math-BigDecimal-toString-is-not-threadsafe/
Notes
the
toString
method involves read/write a non-volatile field
stringCache
and it's assigned a string which may not have been completely initialized.
the experimental OpenJDK harness
Java Concurrency Stress tests
is used to reproduce the error.
Hacker News discussions
Article
Notes
toString
method involves read/write a non-volatile fieldstringCache
and it's assigned a string which may not have been completely initialized.