Skip to content

Excess contention in ManagedChannelImpl.exitIdleMode #2119

@carl-mastrangelo

Description

@carl-mastrangelo

Each RPC needs a transport, and thus calls ManagedChannelImpl's transport provider. This tries to make the transport wake up, but does so under a lock. Profiling reveals a high amount of contention on this lock. If possible we should look at eliding the lock and using a volatile read to get the loadbalancer out of it.

cc @zhangkun83

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions