Is there any difference in using SuspendThread from a JVMTI agent and using the plain Java thread.suspend()?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
In HotSpot JVM both APIs have the same effect.
I've added the links to the relevant parts of OpenJDK source code. Both functions are almost copy-paste of each other, both of them end up calling the same low-level routine
JavaThread::java_suspend()
.The native code for
java.lang.Thread.suspend0()
:The implementation of JVM TI SuspendThread: