Integrated: 8324067: GenShen: Isolate regulator thread to generational mode
William Kemper
wkemper at openjdk.org
Tue Feb 27 00:22:08 UTC 2024
On Fri, 9 Feb 2024 19:47:14 GMT, William Kemper <wkemper at openjdk.org> wrote:
> Shenandoah's generational mode uses a second thread to evaluate heuristics. This is necessary so that the heuristics may interrupt a control thread which is running an old cycle in order to run a young cycle.
>
> The changes here move the regulator thread into `ShenandoahGenerationalHeap`. The generational version of the control thread is also now instantiated only by the generational heap. The upstream version of the control thread has more or less been restored. To summarize:
> * An abstract base class called `ShenandoahController` has been introduced as the base class for the original and generational control threads. It has just one virtual method and it is not on a fast path. Much of the common code has been pulled up into this class.
> * The respective control threads no longer need to check what mode they are in. They also no longer need to select which global generation they need to use. The regulator thread is now only used by the generational mode so it no longer supports running only global cycles.
This pull request has now been integrated.
Changeset: fcf8a8c7
Author: William Kemper <wkemper at openjdk.org>
URL: https://git.openjdk.org/shenandoah/commit/fcf8a8c7e11d02272e4ee07179664bce2f56b2cb
Stats: 2127 lines in 15 files changed: 1282 ins; 727 del; 118 mod
8324067: GenShen: Isolate regulator thread to generational mode
Reviewed-by: kdnilsen, ysr
-------------
PR: https://git.openjdk.org/shenandoah/pull/391
More information about the shenandoah-dev
mailing list