RFR: 8373867: Improve robustness of Attach API for finding tmp directory [v5]

Yasumasa Suenaga ysuenaga at openjdk.org
Tue Jan 20 00:05:23 UTC 2026


On Mon, 19 Jan 2026 11:48:06 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> AttachNotSupportedException should not be thrown when attaching fails due to file permission issues.

Did you say about scenario (2) in above? Then it is not file permission issue. For example, `/tmp` is different between container instances.
In scenario (4), the user is different between target process and attacher process (if it runs as non-root).

IMO we might use IOE in (2) because the problem is filesystem reachability, but (4) should not be IOE.

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

PR Comment: https://git.openjdk.org/jdk/pull/28867#issuecomment-3770485977


More information about the serviceability-dev mailing list