diff options
| author | 2014-08-20 20:18:18 -0700 | |
|---|---|---|
| committer | 2014-08-20 20:18:18 -0700 | |
| commit | 49e36ec1b3457f529d9404a33ff9c92921e3dde9 (patch) | |
| tree | d5ed6c0057cc9cc95d44f9a03960b60184a324dd | |
| parent | 92502ab7570dfa28c98ab6781a1c5b9f8b8748bf (diff) | |
Kill HAVE_ANDROID_PTHREAD_SETNAME_NP.
All it means is __BIONIC__ anyway.
Change-Id: I3ef4ef1a14d0a77c75539f2ab533ee2f3964e1a5
| -rw-r--r-- | runtime/utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/utils.cc b/runtime/utils.cc index 4c52229120..d7e215b4c2 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -1000,7 +1000,7 @@ void SetThreadName(const char* thread_name) { } else { s = thread_name + len - 15; } -#if defined(HAVE_ANDROID_PTHREAD_SETNAME_NP) +#if defined(__BIONIC__) // pthread_setname_np fails rather than truncating long strings. char buf[16]; // MAX_TASK_COMM_LEN=16 is hard-coded into bionic strncpy(buf, s, sizeof(buf)-1); |