diff options
Diffstat (limited to 'test/925-threadgroups/threadgroups.cc')
| -rw-r--r-- | test/925-threadgroups/threadgroups.cc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/test/925-threadgroups/threadgroups.cc b/test/925-threadgroups/threadgroups.cc index 6c6e835dd3..d55555355c 100644 --- a/test/925-threadgroups/threadgroups.cc +++ b/test/925-threadgroups/threadgroups.cc @@ -16,15 +16,17 @@ #include <stdio.h> +#include "android-base/logging.h" #include "android-base/stringprintf.h" -#include "base/macros.h" -#include "base/logging.h" #include "jni.h" -#include "openjdkjvmti/jvmti.h" -#include "ScopedLocalRef.h" +#include "jvmti.h" +#include "scoped_local_ref.h" -#include "ti-agent/common_helper.h" -#include "ti-agent/common_load.h" +// Test infrastructure +#include "jni_helper.h" +#include "jvmti_helper.h" +#include "test_env.h" +#include "ti_macros.h" namespace art { namespace Test925ThreadGroups { @@ -38,7 +40,7 @@ extern "C" JNIEXPORT jobjectArray JNICALL Java_Main_getTopThreadGroups( jthreadGroup* groups; jint group_count; jvmtiError result = jvmti_env->GetTopThreadGroups(&group_count, &groups); - if (JvmtiErrorToException(env, result)) { + if (JvmtiErrorToException(env, jvmti_env, result)) { return nullptr; } @@ -56,7 +58,7 @@ extern "C" JNIEXPORT jobjectArray JNICALL Java_Main_getThreadGroupInfo( JNIEnv* env, jclass Main_klass ATTRIBUTE_UNUSED, jthreadGroup group) { jvmtiThreadGroupInfo info; jvmtiError result = jvmti_env->GetThreadGroupInfo(group, &info); - if (JvmtiErrorToException(env, result)) { + if (JvmtiErrorToException(env, jvmti_env, result)) { return nullptr; } @@ -96,7 +98,7 @@ extern "C" JNIEXPORT jobjectArray JNICALL Java_Main_getThreadGroupChildren( &threads, &threadgroup_count, &groups); - if (JvmtiErrorToException(env, result)) { + if (JvmtiErrorToException(env, jvmti_env, result)) { return nullptr; } |