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

Move model creation outside of synchronized block #1289

Merged

Conversation

reinsch82
Copy link
Contributor

@reinsch82 reinsch82 commented Jan 3, 2024

Fixes #1275

The deadlock seems to happen because DefaultModelPersistence.this.lock is still locked when PersistentModelConverter.toModel is called. Since the purpose of the lock is to synchronise access to the content of the property file this is not necessary.
This change moves the call to PersistentModelConverter.toModel outside of the lock and should therefore avoid the deadlock situation.

@reinsch82 reinsch82 force-pushed the reinhold-attempt-to-fix-deadlock branch from 6ae27ac to 90bd252 Compare January 3, 2024 12:05
@donat donat added this to the 3.1.9 milestone Jan 3, 2024
@donat donat self-requested a review January 3, 2024 12:47
@donat
Copy link
Contributor

donat commented Jan 3, 2024

The changes passed CI; merging.

@donat donat merged commit fd0f7de into eclipse-buildship:master Jan 3, 2024
2 checks passed
@reinsch82 reinsch82 deleted the reinhold-attempt-to-fix-deadlock branch January 5, 2024 11:48
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.

deadlock during startup
2 participants