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

Thomas Stuefe stuefe at openjdk.org
Thu Jul 20 06:05:40 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.

Thanks, David!

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

Yes. Tested on an ARM32 SBC.

> 
> Thanks.

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

PR Comment: https://git.openjdk.org/jdk/pull/14936#issuecomment-1643299095


More information about the hotspot-runtime-dev mailing list