RFR: 8266642: improve ResolvedMethodTable hash function [v6]
Denghui Dong
ddong at openjdk.java.net
Thu May 13 14:55:58 UTC 2021
On Wed, 12 May 2021 17:34:25 GMT, Denghui Dong <ddong at openjdk.org> wrote:
>> JDK-8249719 has fixed the bad hash function problem, however, the performance problem still exists when there are a large number of classes with the same name.
>> Adding the address of the corresponding ClassLoaderData as a factor of hash can solve the problem.
>
> Denghui Dong has updated the pull request incrementally with one additional commit since the last revision:
>
> use ClassLoaderData* as factor
test with this improvement:
Passed: runtime/MemberName/ResolvedMethodTableHash.java
build: 0.587 seconds
compile: 0.585 seconds
main: 3.495 seconds
Test results: passed: 1
test without this improvement:
Passed: runtime/MemberName/ResolvedMethodTableHash.java
build: 0.581 seconds
compile: 0.579 seconds
main: 10.896 seconds
Test results: passed: 1
-------------
PR: https://git.openjdk.java.net/jdk/pull/3901
More information about the hotspot-dev
mailing list