JDK 11 | JDK 17 | JDK 21 | JDK 23 | JDK 8 |
---|---|---|---|---|
11.0.25-oracleFixed | 17.0.13-oracleFixed | 21.0.5-oracleFixed | 23 b21Fixed | 8u431Fixed |
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
Add a test for JDK-8325179 which verifies the number of BasicDirectoryModel.FilesLoader background threads. The test is heavily inspired by the test for BasicDirectoryModel, see JDK-8327137, and its code is based on the ConcurrentModification.java code. The test captures snapshots of live threads and then counts the number of BasicDirectoryModel.FilesLoader threads in each snapshot. There should be no more than two threads. There could be two BasicDirectoryModel.FilesLoader threads after the existing thread is interrupted but hasn't exited yet, and a new thread is already created.
|