On Wed, 31 Mar 2021 10:22:28 GMT, Richard Reingruber <rr...@openjdk.org> wrote:

>> My comment was about JVMTI_ERROR_THREAD_NOT_ALIVE
>
> Sure. I agree with your comment.

I think we should add JVMTI_ERROR_THREAD_SUSPENDED as @reinrich says, it is 
possible for someone to sneak in a second suspend request before us.

@dcubed-ojdk it seem like we could be posting 
JvmtiExport::post_monitor_contended_enter() from the ensure_join() which locks 
the threadObj.

So it might be best to treat this the same way as the others?

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

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

Reply via email to