On Wed, 20 Jul 2022 16:53:39 GMT, Serguei Spitsyn <sspit...@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

Reply via email to