Returns the maximum possible amount of work that the garbage collector needs to do for one complete garbage collection.
(defmethod max-work ((heap mark-and-sweep-heap))
"Returns the maximum possible amount of work that the garbage
collector needs to do for one complete garbage collection."
(+
;; Mark and sweep the object table
(* 2 (nr-object-bytes heap))
;; Mark and sweep the heap
(* 2 (nr-heap-bytes heap))))
Source Context