RFR: 8312527: (api) Re-examine use of sun.nio.ch.Invoker.myGroupAndInvokeCount
Brian Burkhalter
bpb at openjdk.org
Thu Oct 12 19:21:21 UTC 2023
On Thu, 12 Oct 2023 19:13:43 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Initialize private static local variable `myGroupAndInvokeCount` to a `ThreadLocal` instead of to an anonymous class effectively identical to `ThreadLocal`.
The anonymous class overrides `initialValue()` identically to how it is defined in `ThreadLocal` itself.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16170#issuecomment-1760229250
More information about the nio-dev
mailing list