RFR: 8377798: Hotspot build on macOS aarch64 with unused-functions warning reports some unused functions
Matthias Baesken
mbaesken at openjdk.org
Wed Feb 18 08:35:41 UTC 2026
On Wed, 18 Feb 2026 01:55:15 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Seems mmap_create_shared uses the one-parameter get_user_name across POSIX platforms, so we cannot do this.
>
> That seems very suspicious to me. I would expect `mmap_create_shared` and `mmap_attach_shared` to work the same way with regards to getting the user and the tmp directory.
mmap_attach_shared has some special handling for containerized processes
https://github.com/openjdk/jdk/blob/bfac97c5c14b188dda662d1f9591bdc22034161c/src/hotspot/os/posix/perfMemory_posix.cpp#L1160-L1163
seems the other one does not have this. Not sure if this is a 'bug' or just intentional.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29695#discussion_r2821008074
More information about the hotspot-jfr-dev
mailing list