jdk-24/test/jdk
Jesse Glick 9f98136c3a 6956385: URLConnection.getLastModified() leaks file handles for jar:file and file: URLs
Define FileURLConnection.closeInputStream for use by JarURLInputStream.close.
JarURLConnection properly tracks any InputStream it itself opened,
and correspondingly closes the JarFile if necessary (when caches are disabled).
But if its underlying FileURLConnection was used to retrieve a header field,
that would have caused a FileInputStream to be opened
which never gets closed until it is garbage collected.
This means that an application which calls certain methods
on jar:file:/…something.jar!/… URLs will leak file handles,
even if URLConnection caches are supposed to be turned off.
This can delay release of system resources,
and on Windows can prevent the JAR file from being deleted
even after it is no longer in use (for example after URLClassLoader.close).

Reviewed-by: dfuchs, michaelm
2023-06-28 15:33:37 +00:00
..
build 8303476: Add the runtime version in the release file of a JDK image 2023-03-02 17:05:01 +00:00
com 8310191: com/sun/tools/attach/warnings/DynamicLoadWarningTest.java second failure on AIX 2023-06-19 06:39:58 +00:00
demo/jfc
java 8310731: Configure a javax.net.ssl.SNIMatcher for the HTTP/1.1 test servers in java/net/httpclient tests 2023-06-27 11:01:09 +00:00
javax 8310238: [test bug] javax/swing/JTableHeader/6889007/bug6889007.java fails 2023-06-27 20:19:56 +00:00
jdk 8311007: jdk/jfr/tool/TestView.java can't find event 2023-06-28 12:29:43 +00:00
jni/nullCaller 8303072: Memory leak in exeNullCallerTest.cpp 2023-02-24 15:49:00 +00:00
lib 8257733: Move module-specific data from make to respective module 2022-03-21 21:34:09 +00:00
native_sanity
performance/client 8278583: Open source SwingMark - Swing performance benchmark 2023-04-17 18:03:29 +00:00
sanity/client 8298047: Remove all non-significant trailing whitespace from properties files 2023-01-16 18:53:54 +00:00
security/infra/java/security/cert/CertPathValidator/certification 8307134: Add GTS root CAs 2023-05-03 21:09:22 +00:00
sun 6956385: URLConnection.getLastModified() leaks file handles for jar:file and file: URLs 2023-06-28 15:33:37 +00:00
tools 8309630: Clean up tests that reference deploy modules 2023-06-08 01:00:44 +00:00
ProblemList-generational-zgc.txt 8309236: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java with ZGC and Generational ZGC again 2023-05-31 20:41:11 +00:00
ProblemList-Virtual.txt 8310586: ProblemList java/lang/ScopedValue/StressStackOverflow.java#default with virtual threads on linux-all 2023-06-21 21:07:04 +00:00
ProblemList-Xcomp.txt 8305919: java/lang/Thread/virtual/HoldsLock.java#id0 failed, ThreadInfo.getLockInfo() return null 2023-05-02 07:20:19 +00:00
ProblemList-zgc.txt 8309236: ProblemList java/util/concurrent/locks/Lock/OOMEInAQS.java with ZGC and Generational ZGC again 2023-05-31 20:41:11 +00:00
ProblemList.txt 8310914: Remove 2 malformed java/foreign ProblemList entries 2023-06-27 20:40:04 +00:00
req.flg
start-Xvfb.sh
TEST.groups 8306647: Implementation of Structured Concurrency (Preview) 2023-06-07 06:41:09 +00:00
TEST.ROOT 8310187: Improve Generational ZGC jtreg testing 2023-06-20 10:08:13 +00:00