reactor / reactor/BlockHound

Detect Synchronized Methods

Open
#402 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.