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/test/Android.bp b/test/Android.bp
index 7d7afa5..f219b85 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -253,6 +253,7 @@
"ti-agent/breakpoint_helper.cc",
"ti-agent/common_helper.cc",
"ti-agent/redefinition_helper.cc",
+ "ti-agent/suspension_helper.cc",
"ti-agent/trace_helper.cc",
// This is the list of non-special OnLoad things and excludes BCI and anything that depends
// on ART internals.
@@ -287,6 +288,8 @@
"993-breakpoints/breakpoints.cc",
"996-breakpoint-obsolete/obsolete_breakpoints.cc",
"1901-get-bytecodes/bytecodes.cc",
+ "1905-suspend-native/native_suspend.cc",
+ "1908-suspend-native-resume-self/native_suspend_resume.cc",
],
shared_libs: [
"libbase",