RFR: JDK-8312394: [linux] SIGSEGV if kernel was built without hugepage support

David Holmes dholmes at openjdk.org
Thu Jul 20 02:26:41 UTC 2023


On Wed, 19 Jul 2023 14:11:28 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Somewhat trivial fixes. Hugepage detection crashes on systems whose kernels have no support compiled in for them.
> 
> - check the result of opendir() before using
> - don't scan for hugepages at all if we don't have a default hugepage.

Seems reasonable. But does the logging output in print_on need updating to reflect this special case?

Thanks.

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14936#pullrequestreview-1538318458


More information about the hotspot-runtime-dev mailing list