RFR: 8345661: Simplify page size alignment in code heap reservation
Tobias Hartmann
thartmann at openjdk.org
Wed Dec 11 12:17:37 UTC 2024
On Fri, 6 Dec 2024 11:03:34 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> While working on a prototype to clean up ReservedSpace ([JDK-8345655](https://bugs.openjdk.org/browse/JDK-8345655)) I noticed that the code that reserves the code heap first aligns the committed memory size towards small pages and then aligns it against the page size that was set up for the ReservedSpace. I suggest that just align to the latter immediately.
>
> I also inlined the one usage of `os::vm_allocation_granularity`.
>
> Testing tier1-3
Looks good to me.
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22604#pullrequestreview-2495499534
More information about the hotspot-dev
mailing list