RFR: 8253926: Use extra_size correctly in anon_mmap_aligned

Stefan Johansson sjohanss at openjdk.java.net
Fri Oct 2 10:18:42 UTC 2020


A recent cleanup ([8253638: Cleanup os::reserve_memory and remove MAP_FIXED](https://github.com/openjdk/jdk/pull/357/))
got a size mixed up in `anon_mmap_aligned()`. Instead of passing down the calculated `extra_size` to `anon_mmap()` it
uses the original size `bytes`.

This resulted in an early crash when using large pages and with this fix the crash goes away.

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

Commit messages:
 - 8253926: Use extra_size correctly in anon_mmap_aligned

Changes: https://git.openjdk.java.net/jdk/pull/479/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=479&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8253926
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/479.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/479/head:pull/479

PR: https://git.openjdk.java.net/jdk/pull/479


More information about the hotspot-runtime-dev mailing list