diff options
| author | Paul Eggert | 2018-04-18 13:08:36 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-04-18 13:15:26 -0700 |
| commit | 3d3923b79fe103ba66838db04aa9460cf990e565 (patch) | |
| tree | 13066615670c76a0f9d9e0edd090dbe7d2caad83 /etc | |
| parent | 53c29c4d3c636c7f02b563b3c683b13ae5863bcf (diff) | |
| download | emacs-3d3923b79fe103ba66838db04aa9460cf990e565.tar.gz emacs-3d3923b79fe103ba66838db04aa9460cf990e565.zip | |
Tweak mark_object to avoid a conditional branch
* src/alloc.c (LAST_MARKED_SIZE): Now an enum. Make it a power of 2.
(mark_object): Take advantage of the power of 2.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/DEBUG | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -814,7 +814,7 @@ the machine where you started GDB and use the debugger from there. | |||
| 814 | ** Debugging problems which happen in GC | 814 | ** Debugging problems which happen in GC |
| 815 | 815 | ||
| 816 | The array 'last_marked' (defined on alloc.c) can be used to display up | 816 | The array 'last_marked' (defined on alloc.c) can be used to display up |
| 817 | to 500 last objects marked by the garbage collection process. | 817 | to the 512 most-recent objects marked by the garbage collection process. |
| 818 | Whenever the garbage collector marks a Lisp object, it records the | 818 | Whenever the garbage collector marks a Lisp object, it records the |
| 819 | pointer to that object in the 'last_marked' array, which is maintained | 819 | pointer to that object in the 'last_marked' array, which is maintained |
| 820 | as a circular buffer. The variable 'last_marked_index' holds the | 820 | as a circular buffer. The variable 'last_marked_index' holds the |