diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-11-21 20:03:38 +0300 |
---|---|---|
committer | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-11-21 20:30:09 +0300 |
commit | 691aa715cf43bf9d88ee32bca37e471bae35adfb (patch) | |
tree | 3303ea6f578051001749bba4917a93f0e4c0111e /compiler/llvmGen | |
parent | d13b7d60650cb84af11ee15b3f51c3511548cfdb (diff) | |
download | haskell-691aa715cf43bf9d88ee32bca37e471bae35adfb.tar.gz |
Fix heap corruption during stable name allocation
See #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: #15906
Differential Revision: https://phabricator.haskell.org/D5342
Diffstat (limited to 'compiler/llvmGen')
0 files changed, 0 insertions, 0 deletions