> When used with the `--system` option to target a different modular JDK image, 
> `JdepsTask` keeps both `lib/jrt-fs.jar` and `lib/modules` open after it 
> completes. This is the `jdeps` counterpart of the issue previously seen with 
> `JavacTask` in JDK-8357249.
> 
> For an alternate `java.home`, `JdepsConfiguration.SystemModuleFinder` creates 
> a new `jrt:/` 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 
> associated `SystemModuleFinder`, ensuring that these resources are released 
> after the task finishes.
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

Dusan Balek has updated the pull request incrementally with one additional 
commit since the last revision:

  Modified to follow comments of reviewers

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/31498/files
  - new: https://git.openjdk.org/jdk/pull/31498/files/b54caba2..82381145

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=31498&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31498&range=00-01

  Stats: 15 lines in 1 file changed: 4 ins; 4 del; 7 mod
  Patch: https://git.openjdk.org/jdk/pull/31498.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31498/head:pull/31498

PR: https://git.openjdk.org/jdk/pull/31498

Reply via email to