On Wed, 25 Jan 2023 12:26:26 GMT, Per Minborg <pminb...@openjdk.org> wrote:
> This PR proposed to reduce contention in synchronized methods mainly by doing > I/O operations outside synch blocks. I can't quite see the effect of the change here. You went from a synchronized instance method, to a non-synchronized static method which then immediately synchronizes on the passed in instance. ?? That aside I'm not sure what the synchronization issues are here - isn't setting the native access bit an idempotent operation? ------------- PR: https://git.openjdk.org/jdk/pull/12193