RFR: 8291027: Some of TimeZone methods marked 'synchronized' unnecessarily
Andrey Turbanov
aturbanov at openjdk.org
Tue Mar 5 09:09:47 UTC 2024
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.
keep open. Waiting for review
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17441#issuecomment-1978273804
More information about the core-libs-dev
mailing list