diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /src/alloc.c | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
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 | ||
| 1260 | void | 1260 | void |
| 1261 | reset_malloc_hooks () | 1261 | reset_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 | { |