On Thu, 17 Nov 2022 06:28:37 GMT, Poison <d...@openjdk.org> wrote: > As the title says, add the volatile modifier.
This pull request has now been integrated. Changeset: dd18d76b Author: tianshuang <tianshuang...@gmail.com> Committer: Severin Gehwolf <sgehw...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/dd18d76b4c1dfa79707634bcd4df4f8e7cfb8b70 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod 8297173: usageTicks and totalTicks should be volatile to ensure that different threads get the latest ticks Reviewed-by: sgehwolf, alanb ------------- PR: https://git.openjdk.org/jdk/pull/11199