Skip to content

Commit

Permalink
Fix scan range, yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
rkennke committed Jul 1, 2024
1 parent 0616f4f commit 6c68cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1ArraySlicer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@ size_t G1ArraySlicer::process_slice(objArrayOop array, int slice, int pow) {
assert (0 < to && to <= len, "to is sane: %d/%d", to, len);
#endif

return scan_array(array, from, to);
return scan_array(array, from, to - from);
}

0 comments on commit 6c68cc6

Please sign in to comment.