RFR: 8345432: (ch, fs) Replace anonymous Thread with InnocuousThread [v2]

Brian Burkhalter bpb at openjdk.org
Thu Dec 12 19:04:39 UTC 2024


On Thu, 12 Dec 2024 16:30:02 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/share/classes/sun/nio/ch/ThreadPool.java line 73:
>> 
>>> 71:     static ThreadFactory defaultThreadFactory() {
>>> 72:         return (Runnable r) -> {
>>> 73:             Thread t = InnocuousThread.newThread(r);
>> 
>> This change is observable as the threads in this thread pool execute user code. I can't imagine anything really wanting to rely on the undocumented inheritance but it's possible so we'll need to create a CSR for this.
>
> Okay, I will create a CSR.

[CSR](https://bugs.openjdk.org/browse/JDK-8346124) filed.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22697#discussion_r1882731461


More information about the nio-dev mailing list