summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/eventlog/EventLog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/rts/eventlog/EventLog.c b/rts/eventlog/EventLog.c
index ef96f3c880..f830ec19a0 100644
--- a/rts/eventlog/EventLog.c
+++ b/rts/eventlog/EventLog.c
@@ -500,6 +500,15 @@ moreCapEventBufs (nat from, nat to)
for (c = from; c < to; ++c) {
initEventsBuf(&capEventBuf[c], EVENT_LOG_SIZE, c);
}
+
+ // The from == 0 already covered in initEventLogging, so we are interested
+ // only in case when we are increasing capabilities number
+ if (from > 0) {
+ for (c = from; c < to; ++c) {
+ postBlockMarker(&capEventBuf[c]);
+ }
+ }
+
}