Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8331142

Add test for number of loader threads in BasicDirectoryModel

XMLWordPrintable

        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.

              aivanov Alexey Ivanov
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: