JDK-8280059 : Incorrect glibc version is used in a comment in os_linux.cpp
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2022-01-17
  • Updated: 2022-01-25
  • Resolved: 2022-01-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b06Fixed
Related Reports
Relates :  
Relates :  
Description
From JDK-8169373:

The glibc NPTL bug which subtracted the guard size from the thread stack size instead of adding it on top of it has been fixed in glibc 2.27 (see https://sourceware.org/bugzilla/show_bug.cgi?id=22637). This leads to slightly bigger stack sizes for non-Java threads if running an glibc 2.27+ but I think the effect is negligible and only affects non-Java threads because Java threads don't use glibc guard pages.

"JDK-8225035: Thread stack size issue caused by large TLS size" mentioned this in a comment (https://github.com/openjdk/jdk/blob/299022dfacbcb49e3bc5beca8ff9b1fca1101493/src/hotspot/os/linux/os_linux.cpp#L809) but used the wrong glibc version "2.7" instead of "2.27". 

---
Comments
Changeset: 262f2efd Author: David Holmes <dholmes@openjdk.org> Date: 2022-01-18 00:47:27 +0000 URL: https://git.openjdk.java.net/jdk/commit/262f2efd6ce546b4ee8c9c045916c1a23ad14676
18-01-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7103 Date: 2022-01-17 02:44:59 +0000
17-01-2022