Skip to content

Update hashCodeHelper for off-heap #21853

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

Merged
merged 1 commit into from
May 20, 2025

Conversation

VermaSh
Copy link
Contributor

@VermaSh VermaSh commented May 12, 2025

The acceleration was initially disabled because it added array header size to the array object, which was required to reach the elements. However, this is unnecessary for off-heap mode. As a result, the evaluator has been updated to add the array header size exclusively for non-off-heap mode, while in off-heap mode, it now retrieves the data element address directly from the array header, enabling acceleration in off-heap mode.

@VermaSh
Copy link
Contributor Author

VermaSh commented May 12, 2025

Marking this WIP while I launch a personal test build.
cc: @r30shah @zl-wang

@VermaSh VermaSh changed the title Update hashCodeHelper for off-heap WIP: Update hashCodeHelper for off-heap May 12, 2025
@VermaSh
Copy link
Contributor Author

VermaSh commented May 12, 2025

launched personal build for verification.

@VermaSh VermaSh force-pushed the enableHashCode branch 5 times, most recently from 74332ca to fdc0a39 Compare May 16, 2025 20:20
The acceleration was initially disabled because it added array header
size to the array object, which was required to reach the elements.
However, this is unnecessary for off-heap mode. As a result, the
evaluator has been updated to add the array header size exclusively
for non-off-heap mode, while in off-heap mode, it now retrieves the
data element address directly from the array header, enabling
acceleration in off-heap mode.

Signed-off-by: Shubham Verma <[email protected]>
@VermaSh VermaSh changed the title WIP: Update hashCodeHelper for off-heap Update hashCodeHelper for off-heap May 20, 2025
@VermaSh VermaSh marked this pull request as ready for review May 20, 2025 14:33
@VermaSh
Copy link
Contributor Author

VermaSh commented May 20, 2025

This is ready for review. My personal build passed without any relevant failures.

@r30shah
Copy link
Contributor

r30shah commented May 20, 2025

@Spencer-Comin given that you have written this evaluator - can you give it first pass ?

Copy link
Contributor

@r30shah r30shah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@r30shah
Copy link
Contributor

r30shah commented May 20, 2025

Jenkins test sanity zlinux jdk11,jdk21

@r30shah r30shah merged commit 371c4f0 into eclipse-openj9:master May 20, 2025
9 checks passed
@VermaSh VermaSh deleted the enableHashCode branch May 20, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants