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

Commit f86fe80b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "Only spawn one binder thread for cmd."" into pi-dev-plus-aosp

parents eb9b71e6 8e39ddd8
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -167,13 +167,6 @@ int main(int argc, char* const argv[])
{
    signal(SIGPIPE, SIG_IGN);
    sp<ProcessState> proc = ProcessState::self();
    // setThreadPoolMaxThreadCount(0) actually tells the kernel it's
    // not allowed to spawn any additional threads, but we still spawn
    // a binder thread from userspace when we call startThreadPool().
    // This is safe because we only have 2 callbacks, neither of which
    // block.
    // See b/36066697 for rationale
    proc->setThreadPoolMaxThreadCount(0);
    proc->startThreadPool();

#if DEBUG