From 18bd4096a931f8acb4d4088c226a6712fd7fa329 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Tue, 18 Apr 2023 15:42:39 -0700 Subject: [PATCH] Bluetooth AIDL: Set max thread count to 0 The default HAL only uses one thread, which is 0 more than the default of 1. Bug: 205758693 Test: VtsHalBluetoothTargetTest Change-Id: I8828cab2b4eb4d2a28ecc41cb75e3eb470cd0da6 --- bluetooth/aidl/default/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluetooth/aidl/default/service.cpp b/bluetooth/aidl/default/service.cpp index 9af2a08727..ef4b884fc0 100644 --- a/bluetooth/aidl/default/service.cpp +++ b/bluetooth/aidl/default/service.cpp @@ -30,7 +30,7 @@ using ::android::hardware::joinRpcThreadpool; int main(int /* argc */, char** /* argv */) { ALOGI("Bluetooth HAL starting"); - if (!ABinderProcess_setThreadPoolMaxThreadCount(1)) { + if (!ABinderProcess_setThreadPoolMaxThreadCount(0)) { ALOGI("failed to set thread pool max thread count"); return 1; }