• Simon Marlow's avatar
    Report heap overflow in the same way as stack overflow · 61ba4518
    Simon Marlow authored
    Now that we throw an exception for heap overflow, we should only print
    the heap overflow message in the main thread when the HeapOverflow
    exception is caught, rather than as a side effect in the GC.
    
    Stack overflows were already done this way, I just made heap overflow
    consistent with stack overflow, and did some related cleanup.
    
    Fixes broken T2592(profasm) which was reporting the heap overflow
    message twice (you would only notice when building with profiling
    libs enabled).
    
    Test Plan: validate
    
    Reviewers: bgamari, niteria, austin, DemiMarie, hvr, erikd
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3394
    61ba4518
Rts.h 8.56 KB