Trac #9384: fix increasing capabilites number for eventlog.
authorAlexander Vershilov <alexander.vershilov@gmail.com>
Sun, 18 Jan 2015 10:58:57 +0000 (10:58 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 18 Jan 2015 12:17:38 +0000 (12:17 +0000)
commit2edb4a7bd5b892ddfac75d0b549d6682a0be5c02
treeb19cdd7305baacc1beb10fb0eb300f1a735ba991
parent11881ec6f8d4db881671173441df87c2457409f4
Trac #9384: fix increasing capabilites number for eventlog.

Event log had inconcistent support for increacing capabilies
number, as header were not inserted in capability buffer. It
resulted in a ghc-events crash (see #9384). This commit
fixes this issue by inserting required header when number
of capabilies grows.

Reviewers: simonmar, Mikolaj, trofi, austin

Reviewed By: Mikolaj, trofi, austin

Subscribers: carter, thomie

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

GHC Trac Issues: #9384
rts/eventlog/EventLog.c