projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2005-06-13 12:29:48 by simonmar]
[ghc-hetmet.git]
/
ghc
/
includes
/
Cmm.h
diff --git
a/ghc/includes/Cmm.h
b/ghc/includes/Cmm.h
index
e989a00
..
415dc4c
100644
(file)
--- a/
ghc/includes/Cmm.h
+++ b/
ghc/includes/Cmm.h
@@
-317,8
+317,11
@@
HP_CHK_GEN(alloc,liveness,reentry); \
TICK_ALLOC_HEAP_NOCTR(alloc);
HP_CHK_GEN(alloc,liveness,reentry); \
TICK_ALLOC_HEAP_NOCTR(alloc);
+// allocateLocal() allocates from the nursery, so we check to see
+// whether the nursery is nearly empty in any function that uses
+// allocateLocal() - this includes many of the primops.
#define MAYBE_GC(liveness,reentry) \
#define MAYBE_GC(liveness,reentry) \
- if (CInt[alloc_blocks] >= CInt[alloc_blocks_lim]) { \
+ if (bdescr_link(CurrentNursery) == NULL) { \
R9 = liveness; \
R10 = reentry; \
jump stg_gc_gen_hp; \
R9 = liveness; \
R10 = reentry; \
jump stg_gc_gen_hp; \