[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Do we trust the man on the GC trigger?
From: |
Marius Vollmer |
Subject: |
Re: Do we trust the man on the GC trigger? |
Date: |
06 Sep 2001 01:57:34 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Miroslav Silovic <address@hidden> writes:
> Marius Vollmer <address@hidden> writes:
>
> > > One could think of storing some additional data in the header of each
> > > malloc'ed block - that's probably the reason for your WHAT argument.
> > > But: why would scm_free then have to provide the size argument? This
> > > could be stored in such a header as well.
> >
> > Good point! I wasn't thinking of scm_malloc necessarily keeping a
> > header around, and thought that the caller could in most cases easily
> > pass a valid SIZE value. But, when we only make use of WHAT and SIZE
> > during debugging, we could just as well make scm_malloc allocate an
> > extra header, with SIZE and WHAT in it.
>
> Well, since you're already managing the heap at that point, it would
> make sense to put a specific malloc implementation into Guile. Then
> the malloc implementation itself will know how much is allocated, and
> you can get that information.
Yep.
I hope to collect all the nice things that have been discussed in the
next days so that they don't get lost...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Do we trust the man on the GC trigger?,
Marius Vollmer <=