Revert "ugly, temporary, workaroung for a problem where a binder thread spins forever"

This reverts commit 0845d0245e

Change-Id: I395037cb9427cd11f7de6bb78fbdfa917fc6263a
This commit is contained in:
Dave Burke 2012-10-06 23:20:00 -07:00 committed by Android (Google) Code Review
parent 0845d0245e
commit 0bed1f541d
1 changed files with 0 additions and 12 deletions

View File

@ -482,18 +482,6 @@ void IPCThreadState::joinThreadPool(bool isMain)
if(result == TIMED_OUT && !isMain) {
break;
}
// HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK
// FIXME: we sometimes get unexplained EINVAL which causes this
// thread to spin forever. TEMPORARILY allow it to exit.
// We should probably assert on eng builds
if(result == -EINVAL && !isMain) {
ALOGE("**** THREAD %p (PID %d) ERROR (%d) LEAVING THE THREAD POOL\n",
(void*)pthread_self(), getpid(), result);
break;
}
// HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK HACK
} while (result != -ECONNREFUSED && result != -EBADF);
LOG_THREADPOOL("**** THREAD %p (PID %d) IS LEAVING THE THREAD POOL err=%p\n",