RFR: Use ThreadGroup for passive connection

Dmitry Bessonov dbessono at openjdk.org
Wed Feb 28 14:51:56 UTC 2024


On Thu, 22 Feb 2024 12:13:15 GMT, moritz-bruder <duke at openjdk.org> wrote:

> > @moritz-bruder could you please provide more details of the problem that is being solved by this enhancement, link to any JBS bug IDs etc.
> 
> On our side this is an issue that is composed of two other issues.
> 
>     * The remote class loader, in particular because it starts threads in the same `ThreadGroup`, causes an exception to be thrown during `loadClass`.  This is fixed by this patch without really affecting other VMs (one additional allocation in total).
> 
>     * Another issue is that whenever an exception is thrown during class loading, the code for sending and receiving is thrown out of sync.  So the next call to `loadClass` will read the class data of the old request.  Thus, `AgentClassLoader` is not exception-safe.  This issue is not fixed with this patch.  It could be solved by doing some kind of rollback but it was too much effort.

Thank you, more background info would be appreciated - are the issues happening during OpenJDK jtreg test runs? or some other runs? could you please provide a JBS bug id.

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

PR Comment: https://git.openjdk.org/jtharness/pull/58#issuecomment-1969149288


More information about the jtharness-dev mailing list