Integrated: 8376287: Crashes when using -XX:ObjArrayMarkingStride=0
Guanqiang Han
ghan at openjdk.org
Fri Jan 30 09:38:43 UTC 2026
On Thu, 29 Jan 2026 03:46:29 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
This pull request has now been integrated.
Changeset: e3b5b261
Author: Guanqiang Han <ghan at openjdk.org>
Committer: Thomas Schatzl <tschatzl at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/e3b5b261af6acbe7ab074f301c70283b06c17d39
Stats: 3 lines in 2 files changed: 1 ins; 2 del; 0 mod
8376287: Crashes when using -XX:ObjArrayMarkingStride=0
Reviewed-by: tschatzl, shade
-------------
PR: https://git.openjdk.org/jdk/pull/29479
More information about the hotspot-gc-dev
mailing list