storageAddCapabilities: fix bug in updating nursery pointers

Authored by simonmar on Apr 30 2018, 11:22 AM.



We were unconditionally updating the nursery pointers to be
nurseries[cap->no], but when using nursery chunks this might be
wrong. This manifested as a later assertion failure in allocate().

Test Plan

new test case

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
simonmar created this revision.Apr 30 2018, 11:22 AM
simonmar requested review of this revision.Apr 30 2018, 11:23 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 2 2018, 6:49 AM
This revision was automatically updated to reflect the committed changes.

This might be the same as Trac #13793.

simonmar updated the Trac tickets for this revision.May 2 2018, 4:01 PM

This might be the same as Trac #13793.

Ah, I think you're right, thanks.