mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-08 23:40:24 -08:00
Fix infloop in memory-report
* lisp/emacs-lisp/memory-report.el (memory-report--object-size-1): Fix infloop on circular lists.
This commit is contained in:
parent
d18b1c8c75
commit
90e40099de
1 changed files with 3 additions and 1 deletions
|
|
@ -204,7 +204,9 @@ by counted more than once."
|
|||
(cl-incf total (memory-report--object-size counted (car value))))
|
||||
(if (cdr value)
|
||||
(if (consp (cdr value))
|
||||
(setq value (cdr value))
|
||||
(if (gethash (cdr value) counted)
|
||||
(setq value nil)
|
||||
(setq value (cdr value)))
|
||||
(cl-incf total (memory-report--object-size counted (cdr value)))
|
||||
(setq value nil))
|
||||
(setq value nil)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue