aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2018-04-18 13:08:36 -0700
committerPaul Eggert2018-04-18 13:15:26 -0700
commit3d3923b79fe103ba66838db04aa9460cf990e565 (patch)
tree13066615670c76a0f9d9e0edd090dbe7d2caad83 /etc
parent53c29c4d3c636c7f02b563b3c683b13ae5863bcf (diff)
downloademacs-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/DEBUG2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/DEBUG b/etc/DEBUG
index c4774b06d38..a7792952089 100644
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -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
816The array 'last_marked' (defined on alloc.c) can be used to display up 816The array 'last_marked' (defined on alloc.c) can be used to display up
817to 500 last objects marked by the garbage collection process. 817to the 512 most-recent objects marked by the garbage collection process.
818Whenever the garbage collector marks a Lisp object, it records the 818Whenever the garbage collector marks a Lisp object, it records the
819pointer to that object in the 'last_marked' array, which is maintained 819pointer to that object in the 'last_marked' array, which is maintained
820as a circular buffer. The variable 'last_marked_index' holds the 820as a circular buffer. The variable 'last_marked_index' holds the