aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/memory-report.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el
index eae0e36234b..d9c0f02820e 100644
--- a/lisp/emacs-lisp/memory-report.el
+++ b/lisp/emacs-lisp/memory-report.el
@@ -75,7 +75,7 @@ by counted more than once."
75 75
76(defun memory-report-object-size (object) 76(defun memory-report-object-size (object)
77 "Return the size of OBJECT in bytes." 77 "Return the size of OBJECT in bytes."
78 (unless memory-report--type-size 78 (when (zerop (hash-table-count memory-report--type-size))
79 (memory-report--garbage-collect)) 79 (memory-report--garbage-collect))
80 (memory-report--object-size (make-hash-table :test #'eq) object)) 80 (memory-report--object-size (make-hash-table :test #'eq) object))
81 81