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

optimize: enable NamedThreadFactory to get ThreadGroup from the SecurityManager or Current thread #3310

Merged
merged 2 commits into from
Dec 6, 2020

Conversation

jxlgzwh
Copy link
Contributor

@jxlgzwh jxlgzwh commented Nov 26, 2020

Ⅰ. Describe what this PR did
enable NamedThreadFactory to get ThreadGroup from the SecurityManager or Current thread
Reference JDK's implementation of DefaultThreadFactory
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

enable NamedThreadFactory to get ThreadGroup from the SecurityManager
Reference JDK's implementation of DefaultThreadFactory
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
@@ -65,4 +65,11 @@ public void testThreadNameHasCounterWithPrefixCounter() {
.isEqualTo(thread.getName());
}
}
@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Add an empty line before @test would be better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add an empty line before @test would be better.

Thank you for your suggestion. I have dealt with it

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

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

LGTM

Add an empty line before @test
Copy link
Contributor Author

@jxlgzwh jxlgzwh left a comment

Choose a reason for hiding this comment

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

Add an empty line before @test

@l81893521 l81893521 added this to the 1.5.0 milestone Dec 5, 2020
@l81893521 l81893521 added the module/common common module label Dec 5, 2020
Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

@xingfudeshi xingfudeshi merged commit 10c03d0 into apache:develop Dec 6, 2020
@wangliang181230 wangliang181230 modified the milestones: 1.5.0, 1.4.1 Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/common common module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants