Skip to content

Remove the coordinator (controller) thread #1053

Closed
@wks

Description

@wks

It was created because OpenJDK requires the thread that stops the world to be the same thread that starts the world. But now the OpenJDK binding uses a dedicated "companion" thread for that purpose.

The coordinator thread has brought much trouble to the synchronization with GC workers, and it has been changed many time for that. With the concept of "coordinator work" removed in #794, the coordinator thread is now only used to respond to GC triggers. We realized that we can remove the coordinator and the GC workers can coordinate themselves.

Removing the coordinator thread can also save one context switch between the last GC worker starting sleeping and the coordinator thread opening new buckets.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions