Integrated: Use timed wait to sleep control thread

earthling-amzn github.com+71722661+earthling-amzn at openjdk.java.net
Thu Apr 8 21:24:30 UTC 2021


On Tue, 6 Apr 2021 18:44:02 GMT, earthling-amzn <github.com+71722661+earthling-amzn at openjdk.org> wrote:

> Using a timed `wait` rather than a naked sleep allows the control thread to be more responsive to requests from mutators and the regulator thread to start GC cycles. The sleep time is also changed from `ShenandoahControlIntervalMin` to `ShenandoahControlIntervalMax` to reduce unnecessary polling cycles. We could use a plain `wait`, but the control thread is responsible for periodically sending allocation metrics to the `pacer`.

This pull request has now been integrated.

Changeset: 84bb2c3c
Author:    William Kemper <kemperw at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.java.net/shenandoah/commit/84bb2c3c
Stats:     17 lines in 2 files changed: 12 ins; 0 del; 5 mod

Use timed wait to sleep control thread

Reviewed-by: shade

-------------

PR: https://git.openjdk.java.net/shenandoah/pull/28


More information about the shenandoah-dev mailing list