aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index f70cb90b6af..c901a4dc228 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -69,7 +69,7 @@ static __malloc_size_t bytes_used_when_full;
69int consing_since_gc; 69int consing_since_gc;
70 70
71/* Number of bytes of consing since gc before another gc should be done. */ 71/* Number of bytes of consing since gc before another gc should be done. */
72int gc_cons_threshold; 72EMACS_INT gc_cons_threshold;
73 73
74/* Nonzero during gc */ 74/* Nonzero during gc */
75int gc_in_progress; 75int gc_in_progress;
@@ -1320,8 +1320,11 @@ int
1320inhibit_garbage_collection () 1320inhibit_garbage_collection ()
1321{ 1321{
1322 int count = specpdl_ptr - specpdl; 1322 int count = specpdl_ptr - specpdl;
1323 Lisp_Object number;
1323 1324
1324 specbind (Qgc_cons_threshold, make_number ((1 << (VALBITS - 1)) - 1)); 1325 XSETINT (number, ((EMACS_INT) 1 << (VALBITS - 1)) - 1);
1326
1327 specbind (Qgc_cons_threshold, number);
1325 1328
1326 return count; 1329 return count;
1327} 1330}
@@ -2046,7 +2049,7 @@ gc_sweep ()
2046 for (mblk = marker_block; mblk; mblk = mblk->next) 2049 for (mblk = marker_block; mblk; mblk = mblk->next)
2047 { 2050 {
2048 register int i; 2051 register int i;
2049 int already_free = -1; 2052 EMACS_INT already_free = -1;
2050 2053
2051 for (i = 0; i < lim; i++) 2054 for (i = 0; i < lim; i++)
2052 { 2055 {