X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FCmm.h;h=5a380594beb37692b9fdb1a69d008aa592e3a403;hb=4417e97d436e2796bed886cb1a830acb88d3da28;hp=d0dedb8a73a76f42e14e8098087c455f5778c4f8;hpb=03a9ff01812afc81eb5236fd3063cbec44cf469e;p=ghc-hetmet.git diff --git a/ghc/includes/Cmm.h b/ghc/includes/Cmm.h index d0dedb8..5a38059 100644 --- a/ghc/includes/Cmm.h +++ b/ghc/includes/Cmm.h @@ -323,7 +323,7 @@ // whether the nursery is nearly empty in any function that uses // allocateLocal() - this includes many of the primops. #define MAYBE_GC(liveness,reentry) \ - if (bdescr_link(CurrentNursery) == NULL) { \ + if (bdescr_link(CurrentNursery) == NULL || CInt[alloc_blocks] >= CInt[alloc_blocks_lim]) { \ R9 = liveness; \ R10 = reentry; \ jump stg_gc_gen_hp; \