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

Prevent deadlock in Env static initialization #610

Merged
merged 1 commit into from
Mar 25, 2019

Conversation

CarpenterLee
Copy link
Contributor

Signed-off-by: Carpenter Lee hooleeucas@163.com

Describe what this PR does / why we need it

Env static code block may cause a deadlock.

Does this pull request fix one issue?

Fixes #609

Describe how you did it

Eliminate circular references of Env and Constants in the static code block.

Describe how to verify it

CI.

Special notes for reviews

Signed-off-by: Carpenter Lee <hooleeucas@163.com>
@sczyh30 sczyh30 added the to-review To review label Mar 24, 2019
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 added this to the 1.5.1 milestone Mar 25, 2019
@sczyh30 sczyh30 merged commit 7feaf70 into master Mar 25, 2019
@sczyh30 sczyh30 removed the to-review To review label Mar 25, 2019
@sczyh30 sczyh30 deleted the bug/prevent_deadlock_in_static_initialization branch March 25, 2019 02:00
blindpirate pushed a commit to blindpirate/Sentinel that referenced this pull request Apr 10, 2019
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
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.

[Bug]Deadlock may happen in Env static code block
2 participants