RFR: 8366495: Incorrect minimum memory size allocated in allocateNativeInternal()

Amit Kumar amitkumar at openjdk.org
Mon Sep 1 10:10:42 UTC 2025


On Mon, 1 Sep 2025 07:53:24 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

> Hello Amit, would it be possible to add a jtreg test for this? Do you know what was the code path or values for the `allocateNativeSegment()` call which triggered this issue. Having that replicated in a regression test I think would prevent this from happening again.

Hi @jaikiran , 

I will spend some time over it, current jtreg tests are unable to detect it. This is information Aditi gave me regarding the failure in OpenJ9: `In openj9 the write is happening but it is corrupting the header bytes added by OMR. And the failure is thrown by OMR when it validates the memory segment.`

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27027#issuecomment-3241736217


More information about the core-libs-dev mailing list