RFR: 8376287: Crashes when using -XX:ObjArrayMarkingStride=0 [v3]
duke
duke at openjdk.org
Fri Jan 30 08:29:26 UTC 2026
On Thu, 29 Jan 2026 12:47:58 GMT, Guanqiang Han <ghan at openjdk.org> wrote:
>> Please review this change, it addresses a trivial issue. Thanks!
>>
>> **Description:**
>>
>> This is a trivial issue caused by the invalid value of -XX:ObjArrayMarkingStride=0, which results in a division by zero in the PartialArrayTaskStepper::start() method.
>> https://github.com/openjdk/jdk/blob/2529e2fe8dfe9685033bb0ae558266b8bc3cf95c/src/hotspot/share/gc/shared/partialArrayTaskStepper.inline.hpp#L39-L40
>>
>> **Fix:**
>>
>> Restrict the ObjArrayMarkingStride to positive values.
>>
>> **Test:**
>>
>> GHA
>
> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
>
> change max value to INT_MAX/2
@hgqxjj
Your change (at version e05449826915d7d766422b2dfa1a0d34743953de) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29479#issuecomment-3822488605
More information about the hotspot-gc-dev
mailing list