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

Change the use of synchronized in the getBinder method of DefaultBinderFactory class for virtual-threads compliant #3005

Merged
merged 1 commit into from
Sep 24, 2024

Commits on Sep 24, 2024

  1. Remove the use of synchronized in the getBinder method of DefaultBind…

    …erFactory class for virtual-threads
    
    The getBinder method in DefaultBinderFactory was made thread-safe using ReentrantLock. This commit ensures that the method is friendly for virtual threads to avoid blocking and pinning. The lock is acquired at the beginning of the method and released in a finally block to ensure it is always released, even if an exception occurs. Fixes spring-cloudgh-3004
    Fernando Blanch committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    2f82f3c View commit details
    Browse the repository at this point in the history