aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 43befd722bb..44f935c243d 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1258,7 +1258,7 @@ emacs_blocked_realloc (void *ptr, size_t size, const void *ptr2)
1258 calls malloc because it is the first call, and we have an endless loop. */ 1258 calls malloc because it is the first call, and we have an endless loop. */
1259 1259
1260void 1260void
1261reset_malloc_hooks () 1261reset_malloc_hooks (void)
1262{ 1262{
1263 __free_hook = old_free_hook; 1263 __free_hook = old_free_hook;
1264 __malloc_hook = old_malloc_hook; 1264 __malloc_hook = old_malloc_hook;
@@ -5619,7 +5619,8 @@ mark_buffer (Lisp_Object buf)
5619 /* buffer-local Lisp variables start at `undo_list', 5619 /* buffer-local Lisp variables start at `undo_list',
5620 tho only the ones from `name' on are GC'd normally. */ 5620 tho only the ones from `name' on are GC'd normally. */
5621 for (ptr = &buffer->BUFFER_INTERNAL_FIELD (name); 5621 for (ptr = &buffer->BUFFER_INTERNAL_FIELD (name);
5622 (char *)ptr < (char *)buffer + sizeof (struct buffer); 5622 ptr <= &PER_BUFFER_VALUE (buffer,
5623 PER_BUFFER_VAR_OFFSET (LAST_FIELD_PER_BUFFER));
5623 ptr++) 5624 ptr++)
5624 mark_object (*ptr); 5625 mark_object (*ptr);
5625 5626
@@ -5732,7 +5733,7 @@ gc_sweep (void)
5732 int ilim = (lim + BITS_PER_INT - 1) / BITS_PER_INT; 5733 int ilim = (lim + BITS_PER_INT - 1) / BITS_PER_INT;
5733 5734
5734 /* Scan the mark bits an int at a time. */ 5735 /* Scan the mark bits an int at a time. */
5735 for (i = 0; i <= ilim; i++) 5736 for (i = 0; i < ilim; i++)
5736 { 5737 {
5737 if (cblk->gcmarkbits[i] == -1) 5738 if (cblk->gcmarkbits[i] == -1)
5738 { 5739 {