From 653b24c3b72d350e7fc24852f8c444f76e1363c4 Mon Sep 17 00:00:00 2001 From: Diogo Netto <61364108+d-netto@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:37:47 -0300 Subject: [PATCH] fix typo in gc_mark_memory8 when chunking a large array (#149) Backports https://github.com/JuliaLang/julia/pull/54251. --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index 4a74e55e4545d..d44aa068c9c64 100644 --- a/src/gc.c +++ b/src/gc.c @@ -2293,7 +2293,7 @@ STATIC_INLINE void gc_mark_array8(jl_ptls_t ptls, jl_value_t *ary8_parent, jl_va pushed_chunk = 1; } } - for (; ary8_begin < ary8_end; ary8_begin += elsize) { + for (; ary8_begin < scan_end; ary8_begin += elsize) { for (uint8_t *pindex = elem_begin; pindex < elem_end; pindex++) { jl_value_t **slot = &ary8_begin[*pindex]; new_obj = *slot;