mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-13335 make CacheValue.SoftValue.ref volatile
X-SVN-Rev: 40489
This commit is contained in:
parent
f0bfac70f5
commit
0d9ef38e4c
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ public abstract class CacheValue<V> {
|
|||
}
|
||||
|
||||
private static final class SoftValue<V> extends CacheValue<V> {
|
||||
private Reference<V> ref;
|
||||
private volatile Reference<V> ref; // volatile for unsynchronized get()
|
||||
|
||||
SoftValue(V value) { ref = new SoftReference<V>(value); }
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue