Fix #2663: we had a hard-wired capabilities[0]
authorSimon Marlow <marlowsd@gmail.com>
Wed, 8 Oct 2008 11:26:09 +0000 (11:26 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 8 Oct 2008 11:26:09 +0000 (11:26 +0000)
commit8ec22a59d5dca42053a7b4fdc7897925b9cb2eec
tree6bcdf246b6473d2f3f3994845028a9e9d6d26389
parent8ef97aa30a33fb3b536252b2c0459cdf0fd5236f
Fix #2663: we had a hard-wired capabilities[0]
For some unknown reason in schedulePostRunThread() we were always
passing capabilities[0] rather than the current Capability to
throwToSingleThreaded().  This caused all kinds of weird failures and
crashes in STM code when running on multiple processors.
rts/Schedule.c