Skip to content

ConnectionBase::queueForWrite is not loom friendly #6063

@franz1981

Description

@franz1981

Version

4.x

Context

This is a sister of netty/netty#16158 and affecting Quarkus while running with VirtualThread(s) because the mentioned synchronized block is not loom friendly and inflate the lock, causing increases in native memory usage, background deflation activity and leading to native mutex contention as well.

Replacing it with a reentrant lock could be a better option.

Steps to reproduce

No response

Do you have a reproducer?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions