memory defragmentation

Ren-Song Ko korenson at cse.msu.edu
Mon Feb 15 12:52:45 PST 1999


At 10:49 AM 2/15/99 -0700, you wrote:
>> 
>> Hi,
>> 	I am thinking implementing memory defragmentation for kaffe, since kaffe
>> seems not having this feature. Could anyone suggest a better way to do it,
>> specially on updating memory address after moving blocks?
>> 
>
>I assume you are talking about a mostly copying compacting collector,
>is that correct?
>

I have not thought about any specific GC algorithm but the complexity of
updating memory reference, i.e. which data structure might be affected when
I move some objects.

>Furthermore, take a look at kaffevm/gcFuncs.c kaffevm/gc.h.  You will need
>to extend the gc interface to communicate information about the locations
>in which pointers to gcable objects are stored between the VM and gc
subsystem.

To be honest, I still have not figure out how memory referencing works in
kaffe. That is, when an object, say A, is accessing the object B's data,
where the object A can retrieve the address of obejct B in terms of kaffe's
data structure? 

Any help is appreciated.

Thanks,

======================================================
Ren-Song Ko, Department of Computer Science, MSU
korenson at cps.msu.edu, http://www.cps.msu.edu/~korenson

!!! Error 3032 - Recursion error. See error 3032. !!!

"There are only two things which are infinite, the
universe and human stupidity,and I'm not really sure
about the universe" Albert Einstein  


More information about the kaffe mailing list