Integrated: Only clear requested gc cause when it is handled

William Kemper wkemper at openjdk.java.net
Fri Apr 22 17:11:14 UTC 2022


On Fri, 22 Apr 2022 15:38:52 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Do not unconditionally clear `_requested_gc_cause` on every idle iteration of the control loop as this may erroneously over-write a request to perform a GC cycle. With this change, `_requested_gc_cause` is only cleared when a gc request is handled.

This pull request has now been integrated.

Changeset: bdd7667a
Author:    William Kemper <wkemper at openjdk.org>
URL:       https://git.openjdk.java.net/shenandoah/commit/bdd7667ad0dcfd46871edcfbe67aade6b27d1455
Stats:     32 lines in 3 files changed: 25 ins; 6 del; 1 mod

Only clear requested gc cause when it is handled

Reviewed-by: kdnilsen

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

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


More information about the shenandoah-dev mailing list