On Tue, 23 Nov 2021 06:49:47 GMT, Leonid Mesnik <lmes...@openjdk.org> wrote:

> The agentThread variable might have been set by the new agentThread iteration 
> and then deleted in the wrapper from the previous iteration.
> 
> The deletion of agentThread variable should be synced with the termination of 
> the agent thread.

Hi Leonid,

I don't think this is sufficient. You have moved the cleanup of the agentThread 
under the protection of the rawMonitor for termination, but unless the 
initialization of agentThread is also protected by the rawMonitor then you 
still have a problem AFAICS.

Cheers,
David

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

PR: https://git.openjdk.java.net/jdk/pull/6515

Reply via email to