Fix crash in non-threaded RTS on Windows
authorSimon Marlow <marlowsd@gmail.com>
Tue, 20 Apr 2010 12:21:25 +0000 (12:21 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 20 Apr 2010 12:21:25 +0000 (12:21 +0000)
commit870b59f53cb97904096bfd6ea0e58ffc055a14ea
tree08d13d098df4f1b7e49579aa4acbc9d83802f04c
parent5a252eb7bbbe655f63f65e012b8176fd1dd6953f
Fix crash in non-threaded RTS on Windows
The tso->block_info field is now overwritten by pushOnRunQueue(), but
stg_block_async_info was assuming that it still held a pointer to the
StgAsyncIOResult.  We must therefore save this value somewhere safe
before putting the TSO on the run queue.
rts/HeapStackCheck.cmm
rts/win32/AsyncIO.c