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

Don't use adjacancy check for arraylets in WOC fixup #21144

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

amicic
Copy link
Contributor

@amicic amicic commented Feb 19, 2025

When fixing up contiguous reference arrays in Write Once Compactor the
rules should be:

  • pick any, if arraylet mode (offheap disabled)
  • pick any fully initialized array (dataAddr is set), if
    offheap enabled mode

No need to check if data is adjacent - it's given by these conditions.
More so, it's not even correct to use is-adjacent API for arraylet mode.

@amicic amicic added the comp:gc label Feb 19, 2025
@amicic amicic force-pushed the WOC_adjacency_check branch 3 times, most recently from c1ecf33 to 928a7c8 Compare February 19, 2025 16:30
@amicic amicic requested a review from dmitripivkine February 19, 2025 16:30
When fixing up contiguous reference arrays in Write Once Compactor the
rules should be:
- pick any, if arraylet mode (offheap disabled)
- pick any fully initialized array (dataAddr is set), if
offheap enabled mode

No need to check if data is adjacent - it's given by these conditions.
More so, it's not even correct to use is-adjacent API for arraylet mode.

Signed-off-by: Aleksandar Micic <[email protected]>
@amicic amicic force-pushed the WOC_adjacency_check branch from 928a7c8 to e546e71 Compare February 19, 2025 16:31
@dmitripivkine
Copy link
Contributor

jenkins test sanity xlinux jdk21

@dmitripivkine dmitripivkine merged commit ce89fed into eclipse-openj9:master Feb 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants