On Wed, 10 Jun 2026 01:55:16 GMT, David Holmes <[email protected]> wrote:
>> src/hotspot/os/linux/os_linux.cpp line 1560:
>>
>>> 1558: void os::pd_check_temp_directory() {
>>> 1559: if (AltTempDir != nullptr && AltTempDir[0] != '\0') {
>>> 1560: size_t safe_max = PATH_MAX - 100; // accounting for /proc/%pid
>>> composition in containers
>>
>> PATH_MAX or UNIX_PATH_MAX?
>
> Ignore this. PATH_MAX is correct
ok. Yes, PATH_MAX is used through most of this. There's an equivalent
MAXPATHLEN which is also 4096 on linux. Maybe UNIX_PATH_MAX is right because
it's this:
posix/attachListener_posix.cpp:#define UNIX_PATH_MAX
sizeof(sockaddr_un::sun_path)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/31407#discussion_r3387959191