[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/36876] HashMap and Hashtable fields missing volatile decl
From: |
mlists at juma dot me dot uk |
Subject: |
[Bug classpath/36876] HashMap and Hashtable fields missing volatile declaration |
Date: |
31 Jul 2008 13:46:18 -0000 |
------- Comment #1 from mlists at juma dot me dot uk 2008-07-31 13:46 -------
This was discussed on IRC, but just wanted to record here the fact that OpenJDK
no longer includes a volatile modifier in the modcount field in
java.util.HashMap. This change was committed to the jdk7 mercurial repo a few
months ago and I believe the motivation was that the fail-fast behaviour does
not provide guarantees and code that accesses HashMap from a single-thread
should not pay the price of the volatile read and write.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36876