Skip to content

fix(thread-pool): fix thread count vs binding constructor bug#585

Open
luoxiaojian wants to merge 4 commits into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp
Open

fix(thread-pool): fix thread count vs binding constructor bug#585
luoxiaojian wants to merge 4 commits into
alibaba:mainfrom
luoxiaojian:lxj/fix-tp

Conversation

@luoxiaojian

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/db/common/global_resource.cc
Comment thread THREAD_POOL_BEHAVIOR.md
@CLAassistant

CLAassistant commented Jul 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Comment thread src/ailego/parallel/thread_pool.cc Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的size貌似没有做限制,是用户输入的。
如果这个值很大,比如100万,pool_里可能有构造失败不可用的worker。
可以考虑在哪里加个校验或者截断

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants