]> git.eshelyaron.com Git - emacs.git/commit
Delete obsolete GC debugging code
authorStefan Kangas <stefankangas@gmail.com>
Wed, 3 Jan 2024 04:11:10 +0000 (05:11 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Jan 2024 14:41:15 +0000 (15:41 +0100)
commit9c0879379a45030e7b3df42e37b65930040d1f88
treeb993320c2451cb04b993a6352e46cf45a006dedb
parent6ccdf0c672a3d88b158f6bdea673fc4c74071c24
Delete obsolete GC debugging code

This code was introduced in 2014 to catch a GC bug that, according to
Paul Eggert in 2019, "seems to have been fixed" (see 2b552f34892
2019-08-21 "Don’t debug fset by default").  It has been marked
obsolete since that time, and no one has mentioned it on our mailing
lists since.  Let's just get rid of it.

* src/alloc.c
(SUSPICIOUS_OBJECT_CHECKING) [ENABLE_CHECKING]: Don't define.
(suspicious_free_record, suspicious_objects, suspicious_object_index)
(suspicious_free_history, suspicious_free_history_index)
(note_suspicious_free) [SUSPICIOUS_OBJECT_CHECKING]: Delete.
(find_suspicious_object_in_range)
(detect_suspicious_free): Delete functions.
(cleanup_vector)
(allocate_vectorlike): Don't call above deleted functions.
(Fsuspicious_object): Delete DEFUN.
(syms_of_alloc) <Ssuspicious_object>: Delete defsubr.

(cherry picked from commit 5a1cd1bb98f74710d3b2a227755c5627a256dafb)
src/alloc.c