diff options
author | 2017-07-14 15:13:41 +0000 | |
---|---|---|
committer | 2017-07-14 15:13:41 +0000 | |
commit | 5e7eb2faccf8f4a28e9fcda26053a5b388f2190a (patch) | |
tree | 12b2936d445607d1bd7294d3f4a6ba19c27d8951 /runtime/openjdkjvm/OpenjdkJvm.cc | |
parent | 6e875347976b1f332731be775dfd066fda730085 (diff) | |
parent | 88fd720b6799184c8ad61e766a6d37af33ed30ef (diff) |
Merge "Add Jvmti Suspend/ResumeThread functions"
Diffstat (limited to 'runtime/openjdkjvm/OpenjdkJvm.cc')
-rw-r--r-- | runtime/openjdkjvm/OpenjdkJvm.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/openjdkjvm/OpenjdkJvm.cc b/runtime/openjdkjvm/OpenjdkJvm.cc index 4560dda4dd..6a8f2cedca 100644 --- a/runtime/openjdkjvm/OpenjdkJvm.cc +++ b/runtime/openjdkjvm/OpenjdkJvm.cc @@ -432,7 +432,8 @@ JNIEXPORT void JVM_SetNativeThreadName(JNIEnv* env, jobject jthread, jstring jav art::ScopedObjectAccess soa(env); thread->SetThreadName(name.c_str()); } - thread_list->Resume(thread, art::SuspendReason::kInternal); + bool resumed = thread_list->Resume(thread, art::SuspendReason::kInternal); + DCHECK(resumed); } else if (timed_out) { LOG(ERROR) << "Trying to set thread name to '" << name.c_str() << "' failed as the thread " "failed to suspend within a generous timeout."; |