RFR (S): 8165859: gcTaskThread is missing volatile qualifier and barriers for _time_stamps
Kim Barrett
kim.barrett at oracle.com
Mon Sep 19 19:18:18 UTC 2016
> On Sep 19, 2016, at 2:26 PM, Carsten Varming <varming at gmail.com> wrote:
>
> Dear Erik,
>
> According to orderAccess.hpp an acquire is supposed to be paired with a release. It doesn't look like there is any synchronization on the data written to the time stamp array, so what exactly is going on?
>
> Carsten
_time_stamps gets written with a cmpxchg_ptr (line 63 of gcTaskThread.cpp), which includes release semantics for the write; see atomic.hpp.
More information about the hotspot-gc-dev
mailing list