RFR: 8322815: Eliminate -Wparentheses warnings in shenandoah code [v2]
Kim Barrett
kbarrett at openjdk.org
Mon Jan 8 02:39:43 UTC 2024
On Wed, 3 Jan 2024 17:12:31 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> src/hotspot/share/gc/shenandoah/shenandoahConcurrentGC.cpp line 710:
>>
>>> 708: ShenandoahHeap::atomic_update_oop(resolved, p, obj);
>>> 709: assert(_heap->cancelled_gc() ||
>>> 710: (_mark_context->is_marked(resolved) && !_heap->in_collection_set(resolved)),
>>
>> The change for this PR seems fine, but the whole assert looks weird, and lacks richer diagnostics Shenandoah asserts do. I believe the forwardee is explicitly marked, given it is a new copy after TAMS. So the whole thing might be just:
>>
>>
>> shenandoah_assert_not_in_cset_except(p, resolved, _heap->cancelled_gc());
>>
>>
>> Right, @zhengyu123? We should do that in separate PR.
>
> Doing this in #17245. @kimbarrett, feel free to drop this hunk from the patch, that PR is going to rewrite the assert
Thanks. Removed as part of merge conflict resolution.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17214#discussion_r1444129495
More information about the hotspot-gc-dev
mailing list