Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,14 @@ public void clear() {
* }
*}</pre>
*/
transient Set<K> keySet;
transient Collection<V> values;

/**
* J2ObjC: Despite the discussion above, no field race is safe in J2ObjC because
* field access is not atomic in J2ObjC, so mark these volatile so the abstract
* implementation is always safe.
*/
transient volatile Set<K> keySet;
transient volatile Collection<V> values;

/**
* {@inheritDoc}
Expand Down