jbee / jadamant

persistent (immutable) data structures library for Java
7 stars 1 forks source link

Use AtomicReferenceArray insteaf of synchronized block #32

Open jbee opened 10 years ago

jbee commented 10 years ago

When occupying a cell of the array of an evolution list the access is currently synchronized via synchronized block. This can be replaced by a

AtomicReferenceArray#compareAndSet(index, null, value);