RFR: 8252657: JVMTI agent is not unloaded when Agent_OnAttach is failed [v3]
Yasumasa Suenaga
ysuenaga at openjdk.java.net
Thu Jan 14 08:29:03 UTC 2021
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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/19
More information about the hotspot-dev
mailing list