rts/Capability.c: fix crash in -threaded mode on UNREG build
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 13 Feb 2014 13:26:05 +0000 (07:26 -0600)
committerAustin Seipp <austin@well-typed.com>
Mon, 17 Feb 2014 07:46:03 +0000 (01:46 -0600)
commitebace6969f0ec85b1caa0fea265a5f9990a23b2e
treec7545d03cb7bfb911855f6d23cdc89d2a4e05783
parent4bb50ed0c6246e2d45e22e79f5658db1fa8a58b3
rts/Capability.c: fix crash in -threaded mode on UNREG build

UNREG mode has quite nasty invariant to maintain:
    capabilities[0] == &MainCapability

and it's a non-heap memory, while other
capabilities are dynamically allocated.

Issue #8748

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Austin Seipp <austin@well-typed.com>
rts/Capability.c