Integrated: 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Andrey Turbanov
aturbanov at openjdk.org
Fri Jan 24 20:16:51 UTC 2025
On Tue, 16 Jan 2024 10:19:44 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> There are 3 methods in `java.util.TimeZone` which are `public static` and marked as `synchronized`:
> 1. getTimeZone(String)
> 2. getAvailableIDs(int)
> 3. getAvailableIDs()
>
> This means it is a bottle neck for the whole VM.
> I've checked the implementation and concluded that `synchronized` is unnecessary.
This pull request has now been integrated.
Changeset: bef5f565
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/bef5f56544ded9307e5f1095bd42ae46fdc2adda
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Reviewed-by: liach, naoto, jlu
-------------
PR: https://git.openjdk.org/jdk/pull/17441
More information about the core-libs-dev
mailing list