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

CAMEL-20199: Remove synchronized blocks from components R to S #16288

Merged

Conversation

essobedo
Copy link
Contributor

@essobedo essobedo commented Nov 15, 2024

Related to https://issues.apache.org/jira/browse/CAMEL-20199

Motivation

For better support of virtual threads, we need to avoid lengthy and frequent pinning by replacing synchronized blocks with ReentrantLocks

Modifications:

  • Replace mutex with locks
  • Use locks instead of synchronized blocks
  • Leverage ConcurrentMap methods to get rid of synchronized blocks

Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • ⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@essobedo essobedo merged commit 1e7bd12 into main Nov 15, 2024
5 checks passed
@essobedo essobedo deleted the CAMEL-20199/remove-synchronized-blocks-from-r2s-components branch November 15, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants