mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 06:20:43 -08:00
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.
This commit is contained in:
parent
47e0b86611
commit
06c79dcfcb
1 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue