While fixing JDK-8067469 we found out that os::pretouch_memory() is not always called with page aligned end addresses.
This results in that method (and the code that has previously been used) to not touch the page that contains end-address if it is not page aligned. This may have minor performance impact.
Since this method is only used after committing new space for that new space, it might be interesting to align the addresses (and the sizes when passing the commit request to the OS).
E.g. in VirtualSpace::expand_by().
This results in that method (and the code that has previously been used) to not touch the page that contains end-address if it is not page aligned. This may have minor performance impact.
Since this method is only used after committing new space for that new space, it might be interesting to align the addresses (and the sizes when passing the commit request to the OS).
E.g. in VirtualSpace::expand_by().