Skip to content

Commit cb1b8f9

Browse files
committed
Copy if not *GC allocated*, not just new
1 parent 29beca9 commit cb1b8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/arrays.dd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ $(H4 $(LNAME2 growing, Growing an Array))
658658
in place to avoid extra copying. It will do a copy if the new size
659659
is larger and either:)
660660

661-
* The array was not allocated via the `new` operator.
661+
* The array was not $(DDSUBLINK spec/garbage, op_involving_gc, allocated by the GC).
662662
* There is no spare $(RELATIVE_LINK2 capacity-reserve, capacity) in the array.
663663
* Resizing in place would overwrite valid data still accessible in another slice.
664664

0 commit comments

Comments
 (0)