Integrated: 8345661: Simplify page size alignment in code heap reservation

Stefan Karlsson stefank at openjdk.org
Wed Dec 11 12:24:48 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

This pull request has now been integrated.

Changeset: 2382a2de
Author:    Stefan Karlsson <stefank at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2382a2de964aa9b3a8e1ec2500f6337eeeb94706
Stats:     10 lines in 2 files changed: 1 ins; 5 del; 4 mod

8345661: Simplify page size alignment in code heap reservation

Reviewed-by: dholmes, thartmann

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

PR: https://git.openjdk.org/jdk/pull/22604


More information about the hotspot-dev mailing list