Skip to content

Remove Double Mapping - #23495

Merged
amicic merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:removeDMapping
Mar 12, 2026
Merged

Remove Double Mapping#23495
amicic merged 1 commit into
eclipse-openj9:masterfrom
LinHu2016:removeDMapping

Conversation

@LinHu2016

Copy link
Copy Markdown
Contributor

Balanced GC’s new off-heap feature (enabled by default) now covers all double-mapping use cases with better performance. Since the off-heap feature has proven stable, there is no longer a need to maintain double-mapping as a fallback mechanism. This change removes all double-mapping code to simplify the implementation.

  • remove the code under preprocessor symbol "J9VM_GC_ENABLE_DOUBLE_MAP"
  • except gc_glue_java isDoubleMappingEnabled(), which has dependance on omr OMR_GC_DOUBLE_MAP_ARRAYLETS.

@LinHu2016

Copy link
Copy Markdown
Contributor Author

@amicic @dmitripivkine the changes is ready for review, Thanks

Balanced GC’s new off-heap feature (enabled by default) now covers all
double-mapping use cases with better performance. Since the off-heap
feature has proven stable, there is no longer a need to maintain
double-mapping as a fallback mechanism. This change removes all
double-mapping code to simplify the implementation.

- remove the code under preprocessor symbol "J9VM_GC_ENABLE_DOUBLE_MAP"
- except gc_glue_java isDoubleMappingEnabled(), which has dependance on
omr OMR_GC_DOUBLE_MAP_ARRAYLETS.

Signed-off-by: lhu <linhu@ca.ibm.com>
@amicic

amicic commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

jenkins test sanity amac jdk21
jenkins compile win jdk8

@amicic

amicic commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

jenkins compile win jdk8

#endif /* defined(J9VM_GC_ENABLE_DOUBLE_MAP) */
continue;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should not remove these options and keep them around for command line compatibility. Make them do nothing I guess.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

since the testing has passed, I'll let this be handled in a followup PR (when we eventually remove isDoubleMappingEnabled())

@amicic
amicic merged commit 97eb32b into eclipse-openj9:master Mar 12, 2026
8 checks passed
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