Integrated: 8364183: Shenandoah: Improve commit/uncommit handling

Aleksey Shipilev shade at openjdk.org
Thu Jul 31 15:21:01 UTC 2025


On Mon, 28 Jul 2025 10:34:25 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> While working on related bug, I found that Shenandoah commit/uncommit code has a few issues:
>  1. It throws Java OOME on commit/uncommit failures. These should actually be VM-level out of memory errors, so they are properly fatal.
>  2. Throwing OOME on uncommit looks fairly weird.
>  3. We are not zapping on the newly committed regions. 
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `hotspot_gc_shenandoah`
>  - [x] Linux x86_64 server fastdebug, `all`  + `-XX:+UseShenandoahGC`

This pull request has now been integrated.

Changeset: 1b9efaa1
Author:    Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1b9efaa11e660317240bdeda7527b23c7d52da0f
Stats:     59 lines in 3 files changed: 20 ins; 14 del; 25 mod

8364183: Shenandoah: Improve commit/uncommit handling

Reviewed-by: wkemper, xpeng

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

PR: https://git.openjdk.org/jdk/pull/26502


More information about the shenandoah-dev mailing list