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

Replace synchronized blocks with ReentrantLocks for virtual thread support #2656

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omercelikceng
Copy link

Replace synchronized methods and blocks with ReentrantLocks in a few classes in Spring Cloud Config to improve compatibility with virtual threads. This changes the synchronization mechanism in:

  • AbstractScmEnvironmentRepository
  • JGitEnvironmentRepository
  • SvnKitEnvironmentRepository
  • GenericResourceRepository
  • ResourceController

The change helps avoid blocking virtual threads when using Spring Cloud Config in Project Loom environments while maintaining thread safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants