Commit 822a7f4d authored by Stefan Schulze Frielinghaus's avatar Stefan Schulze Frielinghaus Committed by Ben Gamari

Extend argument of createIOThread to word size

Function createIOThread expects its second argument to be of size word.
The natural size of the second parameter is 32bits. Thus for some 64bit
architectures, where a write of the lower half of a register does not
clear the upper half, the value must be zero extended.

(cherry picked from commit d0924b15)
parent 2c0df863
......@@ -927,7 +927,7 @@ stg_forkzh ( gcptr closure )
gcptr threadid;
("ptr" threadid) = ccall createIOThread( MyCapability() "ptr",
RtsFlags_GcFlags_initialStkSize(RtsFlags),
TO_W_(RtsFlags_GcFlags_initialStkSize(RtsFlags)),
closure "ptr");
/* start blocked if the current thread is blocked */
......@@ -952,7 +952,7 @@ again: MAYBE_GC(again);
("ptr" threadid) = ccall createIOThread(
MyCapability() "ptr",
RtsFlags_GcFlags_initialStkSize(RtsFlags),
TO_W_(RtsFlags_GcFlags_initialStkSize(RtsFlags)),
closure "ptr");
/* start blocked if the current thread is blocked */
......
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