RFR: 8325074: ZGC fails assert(index == 0 || is_power_of_2(index)) failed: Incorrect load shift: 11
Roberto Castañeda Lozano
rcastanedalo at openjdk.org
Thu Feb 15 09:16:04 UTC 2024
On Thu, 15 Feb 2024 07:08:50 GMT, Axel Boldt-Christmas <aboldtch at openjdk.org> wrote:
> `ZBarrierSet::clone_obj_array` incorrectly treats the payload of an ObjArray as `[base, obj + size[`. With non standard object alignment (`ObjectAlignmentInBytes`) there may be padding words at the end.
>
> Change `ZBarrierSet::clone_obj_array` to instead use `[base, base + length[` as the payload.
Marked as reviewed by rcastanedalo (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/17863#pullrequestreview-1882181420
More information about the hotspot-gc-dev
mailing list