RFR: 8376287: Crashes when using -XX:ObjArrayMarkingStride=0 [v3]

Guanqiang Han ghan at openjdk.org
Fri Jan 30 08:32:21 UTC 2026


On Thu, 29 Jan 2026 11:56:27 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Looks good, but the corresponding sanity assert (ObjArrayMarkingStride > 0) could be removed in Shenandoah now.
>> 
>> After some investigation we found that not only G1 is affected, but also Serial and Parallel GC to a varying degree, so the summary of the CR changed.
>
>> Hi @tschatzl , I've removed the unused assert and updated the CR summary. Could you please take a look? Hi @shipilev , thank you for the review.
> 
> Looking in more detail on the uses of `ObjArrayMarkingStride`, I see that it is cast to `int`, and at least one calculation multiplies it with 2 before casting to int.
> 
> So it must be <= `MAX_INT / 2`.
> 
> Apologies for not looking in more detail earlier.

Hi @tschatzl, Thank you for the reviews, I have integrated this PR, Could you please sponsor it? Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/29479#issuecomment-3822498384


More information about the hotspot-gc-dev mailing list