Fix heap corruption during stable name allocation

Authored by osa1 on Wed, Nov 21, 11:03 AM.

Description

Fix heap corruption during stable name allocation

See Trac #15906 for the problem. To fix we simply call allocate() instead of
ALLOC_PRIM(). allocate() does not trigger GC when the nursery is full,
instead it extends it.

Test Plan:
This validates. memo001 now passes with -debug compile parameter. I'll add
another test that runs memo001 with -debug once I figure out how to use
stdout files for multiple tests.

Reviewers: simonmar, bgamari, erikd

Reviewed By: simonmar

Subscribers: rwbarton, carter

GHC Trac Issues: Trac #15906

Differential Revision: https://phabricator.haskell.org/D5342

(cherry picked from commit 691aa715cf43bf9d88ee32bca37e471bae35adfb)

Details

Committed
bgamariThu, Nov 22, 1:01 PM
Reviewer
simonmar
Differential Revision
D5342: Fix heap corruption during stable name allocation
Parents
rGHC130b91dbdca6: distrib/configure: Set RanlibCmd
Branches
Unknown
Tags
Unknown