emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 06c79dcfcb: Make memory-report not bug out with symbols with posi


From: Lars Ingebrigtsen
Subject: master 06c79dcfcb: Make memory-report not bug out with symbols with positions
Date: Thu, 26 May 2022 07:05:04 -0400 (EDT)

branch: master
commit 06c79dcfcbc634325b688385be95cd5ed049e208
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make memory-report not bug out with symbols with positions
    
    * lisp/emacs-lisp/memory-report.el (memory-report--object-size-1):
    Don't bug out when there are symbols with positions.
---
 lisp/emacs-lisp/memory-report.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el
index 6cb4cb02e0..56b1ea6ed4 100644
--- a/lisp/emacs-lisp/memory-report.el
+++ b/lisp/emacs-lisp/memory-report.el
@@ -183,6 +183,10 @@ by counted more than once."
 (cl-defgeneric memory-report--object-size-1 (_counted _value)
   0)
 
+;; This shouldn't happen, but there's some leakage.
+(cl-defmethod memory-report--object-size-1 (_ (_value symbol-with-pos))
+  (memory-report--size 'symbol))
+
 (cl-defmethod memory-report--object-size-1 (_ (value symbol))
   ;; Don't count global symbols -- makes sizes of lists of symbols too
   ;; heavy.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]