On Wed, 15 Jun 2022 19:49:52 GMT, Andrey Turbanov <aturba...@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 <aturba...@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

Reply via email to