Integrated: 8288628: Unnecessary Hashtable usage in ConditionalSpecialCasing
Andrey Turbanov
aturbanov at openjdk.org
Tue Jun 21 08:31:52 UTC 2022
On Wed, 15 Jun 2022 19:49:52 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> If a thread-safe implementation is not needed, it is recommended to use HashMap in place of Hashtable.
> `ConditionalSpecialCasing.entryTable` is read-only Map which is modified only in `static` block. It means we can safely replace it with HashMap.
This pull request has now been integrated.
Changeset: 0f801fe6
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0f801fe6fd2fcc181121f9846f6869ca3a03e18a
Stats: 4 lines in 1 file changed: 1 ins; 1 del; 2 mod
8288628: Unnecessary Hashtable usage in ConditionalSpecialCasing
Reviewed-by: naoto, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/9172
More information about the core-libs-dev
mailing list