Skip to content

Commit f458d0d

Browse files
committed
Finally manage to anticipate the amount of freed memory before sweeping
1 parent aafbf31 commit f458d0d

File tree

7 files changed

+123
-107
lines changed

7 files changed

+123
-107
lines changed

src/array.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ static void array_resize_buffer(jl_array_t *a, size_t newlen, size_t oldlen, siz
551551
if (a->how == 2) {
552552
// already malloc'd - use realloc
553553
newdata = (char*)jl_gc_managed_realloc((char*)a->data - oldoffsnb, nbytes,
554-
oldnbytes+oldoffsnb, a->isaligned);
554+
oldnbytes+oldoffsnb, a->isaligned, a);
555555
if (offs != a->offset) {
556556
memmove(&newdata[offsnb], &newdata[oldoffsnb], oldnbytes);
557557
}

0 commit comments

Comments
 (0)