RFR: 8256811: Delayed/missed jdwp class unloading events [v18]

Zhengyu Gu zgu at openjdk.org
Wed Jul 20 18:34:12 UTC 2022


On Wed, 20 Jul 2022 16:53:39 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:

> get_objects_with_tags

@sspitsyn Good catch!

I believe it should be synchronized if `JvmtiEnv::GetObjectsWithTags()` call can overlap disable/enable `ObjectFree` event.

But it raises a question: why it needs `remove_and_post_dead_objects()` here? `JvmtiEnv::GetObjectsWithTags()` returns live objects, posting `ObjectFree` event does not have immediate effect due to queuing in old implementation. Could we have ServiceThread to deal with it instead?

Thanks.

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

PR: https://git.openjdk.org/jdk/pull/9168


More information about the serviceability-dev mailing list