aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-05-04 16:19:08 +0000
committerRichard M. Stallman1995-05-04 16:19:08 +0000
commit26b926e143dd93baf90c788fa6bfdbc6bd47cb60 (patch)
tree9a180362f424749b1c8cdd0a610b0d1ede7b4ca4 /src
parent9fa17f930462502c6914e47386446c9055abb0da (diff)
downloademacs-26b926e143dd93baf90c788fa6bfdbc6bd47cb60.tar.gz
emacs-26b926e143dd93baf90c788fa6bfdbc6bd47cb60.zip
(gc_cons_threshold): Make this an EMACS_INT.
(gc_sweep): Make already_free an EMACS_INT. (inhibit_garbage_collection): Use XSETINT, and do arithmetic in type EMACS_INT.
Diffstat (limited to 'src')
-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 {