Commit 27860dd
kernel: fix static shutDown flag in ThreadPool causing test isolation failures
ThreadPool.shutDown was declared static, so calling safeShutDown() on any
instance permanently poisoned all future instances in the same JVM. In
TCPEchoRawXMLTest, tearDown() after the first test set the flag, then each
subsequent test's setUp() failed with "Thread pool is shut down" (and left
a leaked ServerSocket on port 5555, causing "Address already in use" for the
remaining tests).
Fix: change to an instance field so each ThreadPool tracks its own lifecycle.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a1b414e commit 27860dd
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments