diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index c901a4dc228..063af1e19cb 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -45,6 +45,7 @@ extern __malloc_size_t _bytes_used; | |||
| 45 | extern int __malloc_extra_blocks; | 45 | extern int __malloc_extra_blocks; |
| 46 | 46 | ||
| 47 | #define max(A,B) ((A) > (B) ? (A) : (B)) | 47 | #define max(A,B) ((A) > (B) ? (A) : (B)) |
| 48 | #define min(A,B) ((A) < (B) ? (A) : (B)) | ||
| 48 | 49 | ||
| 49 | /* Macro to verify that storage intended for Lisp objects is not | 50 | /* Macro to verify that storage intended for Lisp objects is not |
| 50 | out of range to fit in the space for a pointer. | 51 | out of range to fit in the space for a pointer. |
| @@ -69,7 +70,7 @@ static __malloc_size_t bytes_used_when_full; | |||
| 69 | int consing_since_gc; | 70 | int consing_since_gc; |
| 70 | 71 | ||
| 71 | /* Number of bytes of consing since gc before another gc should be done. */ | 72 | /* Number of bytes of consing since gc before another gc should be done. */ |
| 72 | EMACS_INT gc_cons_threshold; | 73 | int gc_cons_threshold; |
| 73 | 74 | ||
| 74 | /* Nonzero during gc */ | 75 | /* Nonzero during gc */ |
| 75 | int gc_in_progress; | 76 | int gc_in_progress; |
| @@ -1321,8 +1322,9 @@ inhibit_garbage_collection () | |||
| 1321 | { | 1322 | { |
| 1322 | int count = specpdl_ptr - specpdl; | 1323 | int count = specpdl_ptr - specpdl; |
| 1323 | Lisp_Object number; | 1324 | Lisp_Object number; |
| 1325 | int nbits = min (VALBITS, INTBITS); | ||
| 1324 | 1326 | ||
| 1325 | XSETINT (number, ((EMACS_INT) 1 << (VALBITS - 1)) - 1); | 1327 | XSETINT (number, ((EMACS_INT) 1 << (nbits - 1)) - 1); |
| 1326 | 1328 | ||
| 1327 | specbind (Qgc_cons_threshold, number); | 1329 | specbind (Qgc_cons_threshold, number); |
| 1328 | 1330 | ||