Integrated: 8350869: os::stat doesn't follow symlinks on Windows
Anton Artemov
duke at openjdk.org
Thu May 22 07:59:08 UTC 2025
On Wed, 14 May 2025 14:54:48 GMT, Anton Artemov <duke at openjdk.org> wrote:
> This PR addresses an issue on Windows, where a class file could not be loaded by a symbolic link.
>
> I added a check if a wide path is a symbolic link (soft one) and a method for dereferencing. Both os::stat() and os::open() on Windows now can handle such links.
>
> Tested in tiers 1-3. A separate test added.
This pull request has now been integrated.
Changeset: 85b24c3c
Author: Anton Artemov <anton.artemov at oracle.com>
Committer: SendaoYan <syan at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/85b24c3c4e93d0203a8cfcd5f029e18eebc93f47
Stats: 204 lines in 2 files changed: 200 ins; 3 del; 1 mod
8350869: os::stat doesn't follow symlinks on Windows
Reviewed-by: dholmes, mgronlun
-------------
PR: https://git.openjdk.org/jdk/pull/25233
More information about the hotspot-runtime-dev
mailing list