RFR: 8322954: Shenandoah: Convert evac-update closures asserts to rich asserts

Aleksey Shipilev shade at openjdk.org
Fri Jan 5 17:07:30 UTC 2024


On Wed, 3 Jan 2024 14:19:38 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Over the years, we seem to have introduced new asserts that should really be the rich Shenandoah asserts. I looked around and found at least three places in evac-update closures.
> 
> We also do not need ` _mark_context->is_marked(resolved)` in `ShenandoahEvacUpdateCleanupOopStorageRootsClosure`, because evac-ed objects are supposed to be after TAMS and thus implicitly marked.
> 
> Additional testing:
>  - [x] macos-aarch64-server-fastdebug, `hotspot_gc_shenandoah`
>  - [x] linux-x86_64-server-fastdebug, `tier{1,2,3}` with `-XX:+UseShenandoahGC`

Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/17245#issuecomment-1878988160


More information about the hotspot-gc-dev mailing list