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

Executors.newSingleThreadExecutor can use Cleaner to shutdown executor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • core-libs
    • None

      Executors.newSingleThreadExecutor returns a delegating ExecutorService with a finalize method to shutdown the underlying TPE. This was introduced via JDK-6399443 in JDK 6. The finalizer can be trivially replaced with a Cleaner.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: