summaryrefslogtreecommitdiff
path: root/Lisp/memory-management.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'Lisp/memory-management.lisp')
-rw-r--r--Lisp/memory-management.lisp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lisp/memory-management.lisp b/Lisp/memory-management.lisp
index 1c540fb..600e079 100644
--- a/Lisp/memory-management.lisp
+++ b/Lisp/memory-management.lisp
@@ -1,9 +1,6 @@
(in-package #:mulk.objective-cl)
-(defvar *skip-finalization* nil)
-(defvar *skip-retaining* nil)
-
(defvar *id-objects* (make-weak-value-hash-table))
(defvar *class-objects* (make-weak-value-hash-table))
(defvar *exception-objects* (make-weak-value-hash-table))
@@ -63,7 +60,7 @@
:incomplete)
(let ((new-obj (call-next-method)))
(unless *skip-retaining*
- (objcl-invoke-class-method new-obj "retain"))
+ (invoke-by-name new-obj "retain"))
(unless *skip-finalization*
;; We only put the new object into the hash
;; table if it is a regular wrapper object
@@ -89,7 +86,7 @@
(*skip-retaining* t))
(make-instance saved-type
:pointer saved-pointer))))
- (objcl-invoke-class-method temp "release"))))
+ (invoke-by-name temp "release"))))
(trivial-garbage:finalize new-obj #'finalizer))))
new-obj))
(t obj))))