Add Jvmti Suspend/ResumeThread functions
Enable the can_suspend jvmti capability and implement all required
functionality associated with it.
Test: ./test.py --host -j40
Bug: 34415266
Bug: 62821960
Bug: 63579748
Change-Id: I83b92de7f81622e1658114b034918e8295805b6e
diff --git a/runtime/suspend_reason.h b/runtime/suspend_reason.h
index 27c4d32..289a1a4 100644
--- a/runtime/suspend_reason.h
+++ b/runtime/suspend_reason.h
@@ -28,6 +28,8 @@
kInternal,
// Suspending for debugger (code in Dbg::*, runtime/jdwp/, etc.).
kForDebugger,
+ // Suspending due to non-runtime, user controlled, code. (For example Thread#Suspend()).
+ kForUserCode,
};
std::ostream& operator<<(std::ostream& os, const SuspendReason& thread);