Fixed a bug where C. externals were turned into blocking calls, and B. externals were turned into normal external calls

This turned out to be the reason for the slowness in parrot_attack.
This commit is contained in:
Neil Brown 2009-04-19 23:09:18 +00:00
parent fcacdd3235
commit f4eea82bb7

View File

@ -2140,8 +2140,8 @@ cgenProcCall n as
tell [")};"]
return $ sequence_ afters
case c of
'B' -> tell ["ExternalCallN("]
'C' -> tell ["BlockingCallN(wptr,"]
'B' -> tell ["BlockingCallN(wptr,"]
'C' -> tell ["ExternalCallN("]
_ -> dieP (A.nameMeta n) "Unknown external PROC format"
tell [ [if c == '.' then '_' else c | c <- cs]
, ",1,ext_args);"]