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

GH-2787: Use lazy holder pattern for system initialization #2807

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

afs
Copy link
Member

@afs afs commented Oct 29, 2024

Use the lazy holder pattern to perform system initialization.
Set `JenaSystem.initialized" flag early to avoid deadlocks.


By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

Copy link
Contributor

@arne-bdt arne-bdt left a comment

Choose a reason for hiding this comment

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

Deadlocks are still possible, but the probability of occurrence is massively reduced with this change.

@afs afs merged commit 0f9ff7d into apache:main Oct 30, 2024
@afs afs deleted the gh2787-lazy-holder branch October 30, 2024 09:42
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