JDK-8263185 : Mallinfo deprecated in glibc 2.33
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11.0.11,17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2021-03-08
  • Updated: 2025-01-21
  • Resolved: 2021-03-19
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 11 JDK 17
11.0.15Fixed 17 b15Fixed
Related Reports
Relates :  
Description
Glibc 2.33 deprecates the mallinfo API in favor of the new mallinfo2 API. The API stays nearly the same, only the types in the struct containing the malloc information has changed. Fields in the new API are size_t instead of int.

Compiling against glibc 2.33 triggers a warning (because of mallinfo deprecation), which becomes an error if --disable-warnings-as-errors is not used.

See https://sourceware.org/pipermail/libc-alpha/2021-February/122207.html
Comments
Fix Request (11u). Low risk backport for GCC 11 compatibility. Clean except for context differences. Reviewed by simonis@.
01-12-2021

Changeset: 454af871 Author: Christoph Göttschkes <cgo@openjdk.org> Committer: Thomas Stuefe <stuefe@openjdk.org> Date: 2021-03-19 08:58:36 +0000 URL: https://git.openjdk.java.net/jdk/commit/454af871
19-03-2021

Moving from hotspot/other -> hotspot/runtime since this is memory allocation related (on Linux).
12-03-2021