RFR: Use timed wait to sleep control thread [v3]
earthling-amzn
github.com+71722661+earthling-amzn at openjdk.java.net
Thu Apr 8 16:36:53 UTC 2021
> 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`.
earthling-amzn has updated the pull request incrementally with one additional commit since the last revision:
Lower the rank on new control lock (rather than raise it for others)
-------------
Changes:
- all: https://git.openjdk.java.net/shenandoah/pull/28/files
- new: https://git.openjdk.java.net/shenandoah/pull/28/files/f4b50907..16d39268
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=shenandoah&pr=28&range=02
- incr: https://webrevs.openjdk.java.net/?repo=shenandoah&pr=28&range=01-02
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/shenandoah/pull/28.diff
Fetch: git fetch https://git.openjdk.java.net/shenandoah pull/28/head:pull/28
PR: https://git.openjdk.java.net/shenandoah/pull/28
More information about the shenandoah-dev
mailing list