On Fri, 25 Nov 2022 14:53:57 GMT, Alan Bateman <al...@openjdk.org> wrote:

> Two (since 19) usages of Unsafe.getAndAddInt to update a static field provide 
> the Class object as the base instead of the base object returned by 
> Unsafe.staticFieldBase. This doesn't change anything on the HotSpot VM.

This pull request has now been integrated.

Changeset: cd776093
Author:    Alan Bateman <al...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/cd776093c79e9a1a4c40c0adfdbfeedf293d99c7
Stats:     17 lines in 2 files changed: 12 ins; 0 del; 5 mod

8294278: ForkJoinPool.getAndAddPoolIds should use Unsafe.staticFieldBase

Reviewed-by: burban, chegar, martin

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

PR: https://git.openjdk.org/jdk/pull/11369

Reply via email to