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

Implement error-prone ClassInitializationDeadlock check #1598

Merged
merged 3 commits into from
Jan 5, 2021

Conversation

carterkozak
Copy link
Contributor

Before this PR

Deadlocks which require API/ABI changes to resolve. It's a far better use of resources to alert on these using static analysis than to deadlock every N service startups depending on architecture, JVM, and luck.

After this PR

==COMMIT_MSG==
Implement error-prone ClassInitializationDeadlock check
==COMMIT_MSG==

Possible downsides?

Might produce noise in some projects, however in those cases it's tremendously easy to inadvertently shoot ourselves in the foot.

@changelog-app
Copy link

changelog-app bot commented Jan 4, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Implement error-prone ClassInitializationDeadlock check

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco January 4, 2021 21:59
Copy link
Contributor

@fawind fawind left a comment

Choose a reason for hiding this comment

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

Looks very clean, feel free to merge!

@fawind
Copy link
Contributor

fawind commented Jan 5, 2021

For future reference, an example of where we ran into the issue: palantir/conjure-java#1211

@bulldozer-bot bulldozer-bot bot merged commit abf86ac into develop Jan 5, 2021
@bulldozer-bot bulldozer-bot bot deleted the ckozak/ClassInitializationDeadlock branch January 5, 2021 14:46
@svc-autorelease
Copy link
Collaborator

Released 3.62.0

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

Successfully merging this pull request may close these issues.

3 participants