RFR: 8350869: os::stat doesn't follow symlinks on Windows
Anton Artemov
duke at openjdk.org
Thu May 15 07:25:05 UTC 2025
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.
-------------
Commit messages:
- 8350869: Fixed whitespaces
- 8350869: Added releasing of handles
- Merge remote-tracking branch 'origin/master' into JDK-8350869
- 8350869: More work on test.
- Merge remote-tracking branch 'origin/master' into JDK-8350869
- 8350869: More work
- 8350869: Added handling of symlink on windows when loading a class.
Changes: https://git.openjdk.org/jdk/pull/25233/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25233&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8350869
Stats: 176 lines in 2 files changed: 174 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/25233.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25233/head:pull/25233
PR: https://git.openjdk.org/jdk/pull/25233
More information about the hotspot-runtime-dev
mailing list