Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c431c36e authored by Dave Burke's avatar Dave Burke Committed by Android Git Automerger
Browse files

am 6d24eef4: Merge "Revert "ugly, temporary, workaroung for a problem where a...

am 6d24eef4: Merge "Revert "ugly, temporary, workaroung for a problem where a binder thread spins forever"" into jb-mr1-dev

* commit '6d24eef4':
  Revert "ugly, temporary, workaroung for a problem where a binder thread spins forever"
parents f7576400 6d24eef4
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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",