RFR: 8345656: Move os alignment functions out of ReservedSpace

Afshin Zafari azafari at openjdk.org
Fri Dec 6 13:20:37 UTC 2024


On Fri, 6 Dec 2024 09:58:48 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> I have a wish to simplify the ReservedSpace classes (See: [JDK-8345655](https://bugs.openjdk.org/browse/JDK-8345655)) and as a small step I would like to move the small helper functions that align addresses and sizes to `os::vm_page_size()` and `os::vm_allocation_granularity()` out to be `os::` helpers.
> 
> Tested tier1-3 together with the other patches in the JDK-8345655 prototype.

Thanks for cleaning up the Reserved Space stuff. I found that Copyright years are not up-to-date for these files:

gc/g1/g1CardTable.cpp
gc/g1/g1CardTable.hpp
gc/shared/markBitMap.cpp
gc/shenandoah/shenandoahMarkBitMap.cpp

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

PR Review: https://git.openjdk.org/jdk/pull/22600#pullrequestreview-2484821614


More information about the shenandoah-dev mailing list