RFR: 8252657: JVMTI agent is not unloaded when Agent_OnAttach is failed [v3]

David Holmes david.holmes at oracle.com
Thu Jan 14 22:52:29 UTC 2021


On 14/01/2021 6:29 pm, Yasumasa Suenaga wrote:
> On Thu, 14 Jan 2021 07:19:06 GMT, David Holmes <dholmes at openjdk.org> wrote:
> 
>> Hi Yasumasa,
>>
>> Spec update looks good.
>>
>> VM tweak to call dll_unload on failure looks good.
> 
> Thanks!
> 
>> I don't understand the test change though.
> 
> To check the agent is unloaded, call VM.dynlibs dcmd and check whether agent path is not contained.
> libReturnError.so would be loaded only once in AttachReturnError.java, so it is expected to unload when `Agent_OnAttach()` fails.

Got it! Thanks.

David
-----

> -------------
> 
> PR: https://git.openjdk.java.net/jdk/pull/19
> 


More information about the serviceability-dev mailing list