Commit 97bca0b7 authored by wolfgang's avatar wolfgang
Browse files

[project @ 2003-02-12 23:38:23 by wolfgang]

Threaded RTS: improve ccall performance by allocation parameters as a
variable length array instead of using malloc
parent c8a38271
......@@ -1164,9 +1164,8 @@ run_BCO:
// collection might move the TSO as soon as we call
// suspendThread below.
void *arguments;
W_ arguments[stk_offset];
arguments = stgMallocWords(stk_offset,"bci_CCALL");
memcpy(arguments, Sp, sizeof(W_) * stk_offset);
......@@ -1213,7 +1212,6 @@ run_BCO:
// back to the TSO stack. It would of course be enough to
// just copy the return value, but we don't know the offset.
memcpy(Sp, arguments, sizeof(W_) * stk_offset);
goto nextInsn;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment