RFR: 8267579: Thread::cooked_allocated_bytes() hits assert(left >= right) failed: avoid underflow [v2]
Stefan Karlsson
stefank at openjdk.java.net
Fri Jun 11 07:10:47 UTC 2021
On Fri, 11 Jun 2021 06:57:25 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:
> > Kim has been looking through the standards w.r.t. atomic and read-read coherence and has some insights. Could be worth reading:
> > https://mail.openjdk.java.net/pipermail/hotspot-dev/2021-June/052745.html
>
> read-read coherence only applies to reads of the same atomic object. That doesn't apply to the case at hand.
Thanks for pointing this out. FWIW, the discussion above strayed away from the actual contents PR, and started to talk about the name and semantics of Atomic::load / relaxed atomic loads, in a more generic sense than the suggested usage of it in the patch above.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4363
More information about the hotspot-jfr-dev
mailing list