logo       

Re: Seeing memory corruption, GC moves my objects around: msg#00344

lisp.cmucl.devel

Subject: Re: Seeing memory corruption, GC moves my objects around

Christophe Rhodes <csr21@xxxxxxxxx> writes:

> It can't confuse GC, but it can confuse the system to the point of
> confusing GC later.
>
> (defstruct foo (s " " :type (string 10)))
>
> (defstruct (bar (:include foo (s " " :type (simple-string 10)))))
>
> (defun baz (x)
> (setf (schar (bar-s x) 9) #\Space))

He, nice example.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise