RFR: 8277486: NMT: Cleanup ThreadStackTracker

David Holmes dholmes at openjdk.java.net
Tue Nov 23 01:49:06 UTC 2021


On Mon, 22 Nov 2021 15:36:41 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> _thread_counter is updated with ThreadCritical lock, but is read without the lock. Change to atomic update to ensure reader will not read stale value.

Use of atomic updates with MO_RELAXED will not affect whether an Atomic::load sees a stale value or not.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6504


More information about the hotspot-runtime-dev mailing list