RFR: 8263185: Mallinfo deprecated in glibc 2.33 [v5]

Thomas Stuefe stuefe at openjdk.java.net
Fri Mar 19 04:46:40 UTC 2021


On Thu, 18 Mar 2021 11:56:04 GMT, Christoph Göttschkes <cgo at openjdk.org> wrote:

>> Starting with glibc 2.33, mallinfo is deprecated in favor of the new mallinfo2 API. Both APIs work the same way, the only difference is, that mallinfo2 uses size_t instead of int for the fields of the struct, containing the information about malloc. Please see the [glibc release notes](https://sourceware.org/pipermail/libc-alpha/2021-February/122207.html).
>> 
>> Testing with tier1 on a system with glibc 2.33 and on a system with glibc 2.31.
>
> Christoph Göttschkes has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Copy mallinfo struct definition into VM sources and guard usage.

Looks good to me too. Thank you for fixing this, and sorry for the many iterations.

Cheers, Thomas

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

Marked as reviewed by stuefe (Reviewer).

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


More information about the hotspot-runtime-dev mailing list