Commit 91af47d4 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-04-15 14:37:12 by simonmar]

Fix bug in forkProcess: it should be using RET_N rather than returing
directly.  Makes a difference for unregisterised only.

Remove dead code in atomicModifyMVarzh_fast.
parent 5f1f78c9
/* -----------------------------------------------------------------------------
* $Id: PrimOps.hc,v 1.106 2003/03/24 14:46:54 simonmar Exp $
* $Id: PrimOps.hc,v 1.107 2003/04/15 14:37:12 simonmar Exp $
*
* (c) The GHC Team, 1998-2002
*
......@@ -368,7 +368,6 @@ FN_(atomicModifyMutVarzh_fast)
r->payload[0] = z;
RET_P(r);
JMP_(ENTRY_CODE(Sp[0]));
FE_
}
......@@ -1064,8 +1063,7 @@ FN_(forkProcesszh_fast)
R1.i = RET_STGCALL1(StgInt, forkProcess, CurrentTSO);
JMP_(ENTRY_CODE(Sp[0]));
RET_N(R1.i);
FE_
}
......
Supports Markdown
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