RFR (XS): 8165860: workgroup classes are missing volatile qualifiers for lock-free code
erik.osterlund at oracle.com
Mon Sep 19 10:28:13 UTC 2016
This bug is a split out of the larger JDK-8033552 for adding volatile
qualifiers to lock-free code.
The motivation is to make our implementation more robust since these
kind of issues have struck us a few times too many already.
This specific CR handles the lack of volatile qualifiers in the
SubTasksDone and SequentialSubTasksDone classes in the workgroup.* files.
SubTasksDone is missing volatile on the _tasks and _threads_completed
fields that are changed concurrently with atomics.
SequentialSubTasksDone is missing volatile on the _n_claimed and
_n_completed fields that are changed concurrently with atomics.
I will need a sponsor to push this.
More information about the hotspot-gc-dev