8386334: JdepsTask keeps --system files open#31498
Conversation
|
👋 Welcome back dbalek! A progress list of the required criteria for merging this PR into |
|
@dbalek This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 24 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@vicente-romero-oracle) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
| archive.close(); | ||
| for (Module module : nameToModule.values()) | ||
| module.close(); | ||
| system.close(); |
There was a problem hiding this comment.
Ideally each close should be wrapped in try-catch but I guess it's okay to leave as is
When used with the
--systemoption to target a different modular JDK image,JdepsTaskkeeps bothlib/jrt-fs.jarandlib/modulesopen after it completes. This is thejdepscounterpart of the issue previously seen withJavacTaskin JDK-8357249.For an alternate
java.home,JdepsConfiguration.SystemModuleFindercreates a newjrt:/file system using the target image. That file system and the URL class loader used by its provider, are not closed when the jdeps configuration is closed.The proposal is to modify
JdepsConfiguration.close()to also close the associatedSystemModuleFinder, ensuring that these resources are released after the task finishes.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31498/head:pull/31498$ git checkout pull/31498Update a local copy of the PR:
$ git checkout pull/31498$ git pull https://git.openjdk.org/jdk.git pull/31498/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31498View PR using the GUI difftool:
$ git pr show -t 31498Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31498.diff
Using Webrev
Link to Webrev Comment