Detect Synchronized Methods
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 95
- Avg merge
- 1d 14m
- Merged PRs (30d)
- 6
Description
Synchronized methods should be detected by BlockHound as blocking operations.
Motivation
A library you import on a Reactor project could make use of Synchronized method that will impact the performance of your project due to the nature of the construct.
Desired solution
BlockHound could detect those synchronized methods and/or synchronized statements and throw an exception when used.
Considered alternatives
Code inspection.
Additional context
Info from the Oracle webpage: https://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html.
I am not sure about the feasibility of this check but thought of raising it here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start with the linked Oracle synchronization reference and the project's existing detection approach; done would require a decided, tested way to detect synchronized methods or statements and throw the requested exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100