Skip to content

bug: all generations are collected sequentially when compacting collection kicks in

According to GHC documentation here, compacting collection should only be used for the oldest generation. I found out however while testing one of our programs that when compacting kicks in, Gen 0 were not being collected in parallel as well.

Looking at the code, the bug looks to be here, fixing this should be a simple change to the condition in the if phrase.

Trac metadata
Trac field Value
Version 8.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information