Integrated: Allow regulator to schedule global cycles for the purpose of class unloading

William Kemper wkemper at openjdk.java.net
Fri Apr 29 15:31:27 UTC 2022


On Thu, 28 Apr 2022 20:56:42 GMT, William Kemper <wkemper at openjdk.org> wrote:

> Generational mode only supports class unloading during _global_ cycles. Global cycles can only be triggered in generational mode by an explicit `System.gc` call. With this change, the regulator is able to trigger periodic global cycles based on the value of `ShenandoahUnloadClassesFrequency`. This is currently disabled by default for the generational mode because we've not found a workload that shows a clear benefit, however, we expect it will be needed for longer running workloads and we want the ability to turn this on when necessary.

This pull request has now been integrated.

Changeset: b4ad3540
Author:    William Kemper <wkemper at openjdk.org>
URL:       https://git.openjdk.java.net/shenandoah/commit/b4ad3540ca9f5ca04ab034bc17a4e0c9f0dec2ad
Stats:     21 lines in 3 files changed: 15 ins; 1 del; 5 mod

Allow regulator to schedule global cycles for the purpose of class unloading

Reviewed-by: kdnilsen

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

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


More information about the shenandoah-dev mailing list