diff --git a/jsapi/BUILD.gn b/jsapi/BUILD.gn index 67d4ff544f8266408cdc95fe21f04260a8ed8aae..2c2fc1cc07ed98652c5c1c1247d0417bb733bc7d 100644 --- a/jsapi/BUILD.gn +++ b/jsapi/BUILD.gn @@ -25,10 +25,7 @@ ohos_shared_library("worker") { "worker/worker_runner.cpp", ] - deps = [ - "//foundation/ace/napi:ace_napi", - "//foundation/ace/napi:ace_napi_quickjs", - ] + deps = [ "//foundation/ace/napi:ace_napi" ] if (is_standard_system) { external_deps = [ "hiviewdfx_hilog_native:libhilog" ] diff --git a/jsapi/worker/worker.cpp b/jsapi/worker/worker.cpp index 525508a6246b26ffdbbacc184f3a1219a66ae710..511167ff52bb15114c9a82de60b4c8251a880f62 100644 --- a/jsapi/worker/worker.cpp +++ b/jsapi/worker/worker.cpp @@ -16,7 +16,7 @@ #include "worker.h" namespace OHOS::CCRuntime::Worker { -const static int MAXWORKERS = 50; +const static int MAXWORKERS = 8; static std::list g_workers; static std::mutex g_workersMutex;