When vec growth results in a newly allocated (extended) buffer, copy existing elements over via element-wise copy, not flat memcpy. Introduce new vec growth glue to achieve this.

This commit is contained in:
Roy Frostig 2010-09-03 16:18:32 -07:00
parent 1eb2a8b10b
commit 4e355aebf7
4 changed files with 221 additions and 28 deletions

View file

@ -102,8 +102,8 @@ let iterator_args_elt_outer_frame_ptr = 1;;
let indirect_args_elt_closure = 0;;
(* dst, taskptr, closure-ptr, ty_params, src, src2=target_task *)
let worst_case_glue_call_args = 6;;
(* Current worst case is by vec grow glue *)
let worst_case_glue_call_args = 7;;
type abi =
{