diff options
| author | Roy Frostig <[email protected]> | 2010-09-03 16:18:32 -0700 |
|---|---|---|
| committer | Roy Frostig <[email protected]> | 2010-09-03 16:18:32 -0700 |
| commit | 4e355aebf7c0987c3d6f66ca0013e7023aa501dd (patch) | |
| tree | a1d1490532468b04d76f06a0e3351f869427de48 /src/boot/be/abi.ml | |
| parent | Assert to insure that the worst-case glue-call arg count is not exceeded unle... (diff) | |
| download | rust-4e355aebf7c0987c3d6f66ca0013e7023aa501dd.tar.xz rust-4e355aebf7c0987c3d6f66ca0013e7023aa501dd.zip | |
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.
Diffstat (limited to 'src/boot/be/abi.ml')
| -rw-r--r-- | src/boot/be/abi.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/be/abi.ml b/src/boot/be/abi.ml index dbbc7135..b58f9125 100644 --- a/src/boot/be/abi.ml +++ b/src/boot/be/abi.ml @@ -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 = { |