Integrated: 8330681: Explicit hashCode and equals for java.lang.runtime.SwitchBootstraps$TypePairs
Claes Redestad
redestad at openjdk.org
Mon Apr 22 08:57:45 UTC 2024
On Fri, 19 Apr 2024 13:23:53 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> We can reduce overhead of first use of a switch bootstrap by moving `typePairToName` into `TypePairs` and by explicitly overriding `hashCode` and `equals`. The first change avoids loading and initializing the `TypePairs` class in actual cases, the second remove some excess code generation from happening on first use.
This pull request has now been integrated.
Changeset: 3d62bbf4
Author: Claes Redestad <redestad at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3d62bbf4f2ea1b37d59c8307225239a88d9e66c0
Stats: 18 lines in 1 file changed: 14 ins; 3 del; 1 mod
8330681: Explicit hashCode and equals for java.lang.runtime.SwitchBootstraps$TypePairs
Reviewed-by: jlahoda, mchung
-------------
PR: https://git.openjdk.org/jdk/pull/18865
More information about the core-libs-dev
mailing list