os::commit_memory() has an "alignment_hint" parameter which is, like the rest of the API, undocumented.
Looking at the code closely, it just does something on Linux, where it is used as a very elaborate way to switch on use of TPH on committing memory.
See also os::realign_memory(), which is empty on all platforms but Linux and on Linux it switches on TPH for the given area.
Check if this whole coding can be simplified. Maybe hidden inside the Linux os layer instead of bleeding as API into shared code?
Looking at the code closely, it just does something on Linux, where it is used as a very elaborate way to switch on use of TPH on committing memory.
See also os::realign_memory(), which is empty on all platforms but Linux and on Linux it switches on TPH for the given area.
Check if this whole coding can be simplified. Maybe hidden inside the Linux os layer instead of bleeding as API into shared code?
- relates to
-
JDK-8253650 Cleanup: remove alignment_hint parameter from os::reserve_memory
-
- Resolved
-
-
JDK-8253889 Remove ExecMem constant
-
- Closed
-