Skip to content

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

Merged
afs merged 1 commit intoapache:mainfrom
afs:gh2787-lazy-holder
Oct 30, 2024
Merged

GH-2787: Use lazy holder pattern for system initialization#2807
afs merged 1 commit intoapache:mainfrom
afs:gh2787-lazy-holder

Conversation

@afs
Copy link
Copy Markdown
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
Copy Markdown
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