Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make all ThreadPool static final #3243

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Conversation

robberphex
Copy link
Collaborator

@robberphex robberphex commented Oct 19, 2023

Describe what this PR does / why we need it

There are some thread pools associated with class instance, which might cause many thread pools created.

Does this pull request fix one issue?

NONE

Describe how you did it

make all thread poll is static final, do not create thread pool dynamically.

Describe how to verify it

Start an application with sentinel, we could notice that all threads associated with an static field.

Special notes for reviews

@robberphex robberphex force-pushed the thread-pool branch 3 times, most recently from a06cf9e to 39608c1 Compare October 25, 2023 13:04
Copy link
Collaborator

@LearningGp LearningGp left a comment

Choose a reason for hiding this comment

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

LGTM

@LearningGp LearningGp merged commit 5108046 into alibaba:master Oct 30, 2023
7 checks passed
LearningGp pushed a commit that referenced this pull request Dec 28, 2023
* make all ThreadPool static final

* update github workflow
z-soulx pushed a commit to z-soulx/Sentinel that referenced this pull request May 27, 2024
* make all ThreadPool static final

* update github workflow
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.

2 participants