Integrated: 8271834: TestStringDeduplicationAgeThreshold intermittent failures on Shenandoah
Zhengyu Gu
zgu at openjdk.java.net
Mon Sep 13 12:26:49 UTC 2021
On Wed, 8 Sep 2021 23:59:00 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> To trigger young GC, the test fills heap with -Xmn amount of garbage. However, -Xmn does not apply to non-generational GC, such as Shenandoah, and -Xmn amount of garbage, sometimes, it not enough to trigger GC, therefore, there is no guarantee that strings can reach deduplication age threshold.
>
> I purpose to use MXBean to get exact gc count to ensure expected gc cycles actually performed.
This pull request has now been integrated.
Changeset: f9b2507f
Author: Zhengyu Gu <zgu at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f9b2507f3e86bcb91e8ccfd0a84f31712fd535c2
Stats: 49 lines in 1 file changed: 43 ins; 2 del; 4 mod
8271834: TestStringDeduplicationAgeThreshold intermittent failures on Shenandoah
Reviewed-by: shade, pliden
-------------
PR: https://git.openjdk.java.net/jdk/pull/5428
More information about the hotspot-gc-dev
mailing list