RFR: 8312424: 80% throughput decrease in Arrays.hashCode(Object[]) after JDK-8312164
Chen Liang
liach at openjdk.org
Thu Jul 20 01:34:52 UTC 2023
On Thu, 20 Jul 2023 01:11:43 GMT, Glavo <duke at openjdk.org> wrote:
> The changes to `Arrays.hashCode(Object[])` in JDK-8312164 caused its performance is reduced by about 80%.
>
> This PR reverts this change.
A similar performance decrease have been discussed here: https://github.com/openjdk/jdk/pull/14752#discussion_r1250888931
Can you check whether adding `@ForceInline` on `Objects.equals` help with JIT? If it helps, then I think adding `@ForceInline` might be a better solution.
Created JBS issue for you: https://bugs.openjdk.org/browse/JDK-8312424
I chose a generic title which applies to both reverting the last patch or updating Objects methods.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14944#issuecomment-1642966265
PR Comment: https://git.openjdk.org/jdk/pull/14944#issuecomment-1642971538
More information about the core-libs-dev
mailing list