Commit d0924b15 authored by Stefan Schulze Frielinghaus's avatar Stefan Schulze Frielinghaus Committed by Marge Bot

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.
parent 47386fe8
Pipeline #10869 failed with stages
in 700 minutes and 47 seconds
......@@ -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