This could help with memory https://git.haskell.org/ghc.git/commitdiff/b0534f78a73f972e279eed4447a5687bd6a8308e

I think that's the result of a Facebook contribution, they needed it to avoid a single unlikely request taking too much memory and slowing down everything else.