JNDI LDAP Threads & Loom
Aleksei Efimov
aleksej.efimov at oracle.com
Tue Jul 19 17:00:30 UTC 2022
I've logged an RFE to investigate internal usage of virtual threads in the JNDI/LDAP provider:
https://bugs.openjdk.org/browse/JDK-8290559
We will investigate it once VTs are out of preview.
- Aleksei
________________________________
From: loom-dev <loom-dev-retn at openjdk.org> on behalf of Ron Pressler <ron.pressler at oracle.com>
Sent: Tuesday, July 19, 2022 2:29 PM
To: Jason Rivard <jrivard at gmail.com>
Cc: loom-dev at openjdk.java.net <loom-dev at openjdk.java.net>
Subject: Re: JNDI LDAP Threads & Loom
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20220719/2e4f54f2/attachment-0001.htm>
More information about the loom-dev
mailing list