On Thu, 11 Jun 2026 03:09:28 GMT, David Holmes <[email protected]> wrote:
>> Yes, we can. I added this because it failed in my local testing. > > So my point is: what is the true limit here? If this must be UNIX_PATH_MAX > because we still use sockets in the attach mechanism (ref Solaris doors) then > allowing the user-defined tmp dir here is risky, unless we constrain > `AltTempDir` to a much shorter value < UNIX_PATH_MAX. The JVM can write hsperfdata to a directory that's > 108 UNIX_PATH_MAX characters long, and jps can read it. The attach api uses a socket file length. Maybe it makes sense to limit both, which should only be a problem with too long AltTempDir. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/31407#discussion_r3399283627
