RFR: 8281263: virtual space leakage if large page commit fails.
Jatin Bhateja
jbhateja at openjdk.java.net
Mon Feb 7 12:57:08 UTC 2022
On Fri, 4 Feb 2022 13:27:58 GMT, Swati Sharma <duke at openjdk.java.net> wrote:
> Hi Team,
>
> In this patch I have fixed the virtual space leakage issue. While attempting commit over larger pages we first try to reserve requested bytes over the virtual address space, in case commit to large page fails we should be un reserving entire reservation to avoid leaving any leaks in virtual address space.
>
> Please review and provide your valuable comments.
>
>
> Thanks,
> Swati Sharma
> Runtime Software Development Engineer
> Intel
MAP_FIXED flag is clear on the semantics here, it will override the earlier mapping and which will unreserve the memory in case of commit failure.
Closing this PR which was spun out of discussion on [PR 7326](https://github.com/openjdk/jdk/pull/7326)
-------------
PR: https://git.openjdk.java.net/jdk/pull/7350
More information about the hotspot-runtime-dev
mailing list