Skip to content

Commit

Permalink
closette: Hack around a memory corruption bug
Browse files Browse the repository at this point in the history
  • Loading branch information
froggey committed Jul 24, 2020
1 parent 6e65392 commit 9ef1a80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions system/clos/closette.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1966,6 +1966,10 @@ has only has class specializer."
`(funcall (cdr eql-emfun) ,@req-args))))))
(let* ((class (class-of ,(nth index req-args)))
(emfun (single-dispatch-emf-entry emf-table class)))
;; Hack around a bug... The table gets corrupted somehow and returns an integer
(when (and emfun (not (functionp emfun)))
(setf emfun nil)
(clear-single-dispatch-emf-table emf-table))
(if emfun
,(if rest-arg
`(apply emfun ,@req-args ,rest-arg)
Expand Down

0 comments on commit 9ef1a80

Please sign in to comment.