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

(bf) CleaningThread should be InnocuousThread

XMLWordPrintable

    • master

      JDK-8344332 introduced a Thread subclass. Most of the threads created in nio use InnocuousThread, or else set an explicit Thread name. See e.g. JDK-8345432 where some threads were migrated to InnocuousThread or given explicit names.

      Would it be possible to either use InnocuousThread or set an explicit name for BufferCleaner?

      I noticed this investigating a test failure on JDK 26 EA, with some code that was asserting that all threads had explicit names. I don't know if that's a reasonable assumption for the affected to code to be making, but this seemed like it might be on oversight in JDK-8344332 and that it might make sense to use the same approach as JDK-8345432.

            cushon Liam Miller-Cushon
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: