JNDI LDAP Threads & Loom
Ron Pressler
ron.pressler at oracle.com
Tue Jul 19 13:29:16 UTC 2022
I am not familiar with the specifics of this particular mechanism (I can ask others who are), but I expect this kind of internal usage will be considered once virtual threads are out of preview.
— Ron
> On 19 Jul 2022, at 12:24, Jason Rivard <jrivard at gmail.com> wrote:
>
> Will JNDI LDAP Threads be "virtualizable"? These threads are created here:
>
> https://github.com/openjdk/jdk/blob/f5a7de86278ce019ffe44a92921dbb4018451a73/src/java.naming/share/classes/com/sun/jndi/ldap/VersionHelper.java#L112
>
> There is no exposed API for controlling the thread creation or
> supplying a custom ThreadFactory.
>
> As it happens I manage an app that needs to create hundreds to
> thousands of these connections for /reasons/, and that makes for lots
> of legacy thread usage.
>
> I suppose a similar question also applies to otherwise similar
> internal threads created for per-socket I/O work - I'm assuming there
> are others.
>
> Thanks!
>
> -Jason
More information about the loom-dev
mailing list