Skip to content

Conversation

AditiS11
Copy link

@AditiS11 AditiS11 commented Sep 4, 2025

Fix for Issue eclipse-openj9/openj9#22219
If the init flag is set to true
ensure min allocation size of Long.BYTES.
initNativeMemory() writes a full long (Long.BYTES).
1-byte allocation is not enough and can corrupt the footer.

This change was suggested during the review of the corresponding PR in OpenJDK(openjdk/jdk#27027). Replaces #32

Backport ibmruntimes/openj9-openjdk-jdk#1086

@AditiS11 AditiS11 force-pushed the Issue-22219-fix branch 2 times, most recently from 88c30be to 80866fd Compare September 4, 2025 17:03
@AditiS11
Copy link
Author

AditiS11 commented Sep 4, 2025

@pshipton,
Could you pls review this

Fix for Issue eclipse-openj9/openj9#22219
If the init flag is set to true
ensure min allocation size of Long.BYTES.
initNativeMemory() writes a full long (Long.BYTES).
1-byte allocation is not enough and can corrupt the footer.
@keithc-ca keithc-ca self-requested a review September 8, 2025 18:12
@keithc-ca keithc-ca merged commit 42b8446 into ibmruntimes:openj9 Sep 8, 2025
1 of 2 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