[movitz-cvs] CVS update: movitz/losp/muerte/functions.lisp
Frode Vatvedt Fjeld
ffjeld at common-lisp.net
Thu Jul 15 21:06:59 UTC 2004
Update of /project/movitz/cvsroot/movitz/losp/muerte
In directory common-lisp.net:/tmp/cvs-serv24621
Modified Files:
functions.lisp
Log Message:
This rather substantial check-in is a clean-up of all things related
to dynamic memory allocation. In particular, the separation between
the muerte kernel with its 'default' memory management (which simply
allocates objects consecutively until it runs out) and the los0 GC
implementation is improved.
Date: Thu Jul 15 14:06:59 2004
Author: ffjeld
Index: movitz/losp/muerte/functions.lisp
diff -u movitz/losp/muerte/functions.lisp:1.15 movitz/losp/muerte/functions.lisp:1.16
--- movitz/losp/muerte/functions.lisp:1.15 Tue Jul 13 15:41:48 2004
+++ movitz/losp/muerte/functions.lisp Thu Jul 15 14:06:59 2004
@@ -10,7 +10,7 @@
;;;; Author: Frode Vatvedt Fjeld <frodef at acm.org>
;;;; Created at: Tue Mar 12 22:58:54 2002
;;;;
-;;;; $Id: functions.lisp,v 1.15 2004/07/13 22:41:48 ffjeld Exp $
+;;;; $Id: functions.lisp,v 1.16 2004/07/15 21:06:59 ffjeld Exp $
;;;;
;;;;------------------------------------------------------------------
@@ -351,8 +351,8 @@
(make-array (length code-vector)
:element-type 'code
:initial-contents code-vector))))
- (let ((funobj (malloc-words (+ #.(cl:truncate (bt:sizeof 'movitz:movitz-funobj) 4)
- (length constants)))))
+ (let ((funobj (malloc-pointer-words (+ #.(cl:truncate (bt:sizeof 'movitz:movitz-funobj) 4)
+ (length constants)))))
(setf (memref funobj #.(bt:slot-offset 'movitz:movitz-funobj 'movitz:type) 0 :unsigned-byte16)
#.(movitz:tag :funobj))
(setf (funobj-name funobj) name
@@ -395,8 +395,8 @@
(defun copy-funobj (old-funobj &optional (name (funobj-name old-funobj)))
(let* ((num-constants (funobj-num-constants old-funobj))
- (funobj (malloc-words (+ -2 #.(cl:truncate (bt:sizeof 'movitz:movitz-funobj) 4)
- num-constants))))
+ (funobj (malloc-pointer-words (+ #.(cl:truncate (bt:sizeof 'movitz:movitz-funobj) 4)
+ num-constants))))
(setf (memref funobj #.(bt:slot-offset 'movitz:movitz-funobj 'movitz:type) 0 :unsigned-byte16)
(memref old-funobj #.(bt:slot-offset 'movitz:movitz-funobj 'movitz:type) 0 :unsigned-byte16))
(setf (funobj-num-constants funobj) num-constants)
More information about the Movitz-cvs
mailing list