rts/Capability.c: fix crash in -threaded mode on UNREG build

Authored by trofi on Feb 13 2014, 7:26 AM.

Description

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 Trac #8748

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

Details

Committed
austinFeb 17 2014, 1:46 AM
Pushed
bgamariAug 25 2016, 1:39 PM
Parents
rGHCDIFF4bb50ed0c624: Fix --enable-unregistered by declaring missing RTS functions (#8748)
Branches
Unknown
Tags
Unknown