Mail Archives: opendos/1997/04/26/05:54:26
On 25 Apr 97 at 14:41, Mark Habersack wrote:
> > A garbage collector is a process that deallocates memory automatically. With
[...]
> mmm... sounds sensible. Do you know of any GC already working somewhere?
Erm... there are zillions! Look on the web for Hans Boehm's GC for C. It's
about as good as GC can get under C. Languages with "real" pointers do better
from it.
> > Well, it would go outside the cache, using direct reads and writes, since
> > there is little benefit in caching it's activities. Therefore, it would need
> > to notify the cache of things being shuffled around. To this end, we could
> > cache blocks with addresses relative to files rather than disk sectors...
> > ie, "this cache block is the 3rd sector of file handle X". So when things
> > shift about, nothing gets lost!
> That needs a great deal of memory to be held in a locked area...
Well, it needs thinking about properly. YMMV and all that.
> > Swapfiles should be allocated from a fixed, unmoveable, solid block anyway,
> > IMHO.
> And what about the 'flexible' swapfiles - they out of definition cannot be
> stored in solid blocks?
In which case, treat them like any other file, just as eligible for
defragmentation.
ABW
--
Alaric B. Williams (alaric AT abwillms DOT demon DOT co DOT uk)
---<## OpenDOS FAQ ##>---
Plain HTML: http://www.delorie.com/opendos/faq/
http://www.deltasoft.com/faq.html
Fancy HTML: http://www.deltasoft.com/faq0000.html
- Raw text -