Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable prehashing of j.l.Thread and Class #15444

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Conversation

tajila
Copy link
Contributor

@tajila tajila commented Jun 28, 2022

Enable prehashing of j.l.Thread and Class

Pre-tenured objects like Thread and Class do not get moved as often by
the GC which means that it would take longer for it to grow a hash slot.
This would require the VM to take the slow path for retrieving the
hashcode until the hash slot is grown. Pre-hashing these objects
addresses this problem.

Signed-off-by: Tobi Ajila atobia@ca.ibm.com

Pre-tenured objects like Thread and Class do not get moved as often by
the GC which means that it would take longer for it to grow a hash slot.
This would require the VM to take the slow path for retrieving the
hashcode until the hash slot is grown. Pre-hashing these objects
addresses this problem.

Signed-off-by: Tobi Ajila <atobia@ca.ibm.com>
@tajila tajila requested a review from pshipton June 28, 2022 14:29
@tajila
Copy link
Contributor Author

tajila commented Jun 28, 2022

@pshipton Whats the rule on copyrights with files like these?

@pshipton
Copy link
Member

There is no copyright and you don't need to add one. The copyright check failure can be ignored.

@pshipton
Copy link
Member

jenkins test sanity,sanity.openjdk,sanity.system all jdk8,jdk11,jdk17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants