You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by lyon <us...@gmail.com> on 2008/03/13 15:09:19 UTC

[drlvm]how to write garbage collection algorithm into the vm

Hi everyony,
I am a student.
I just started to pay attention to the harmony.
If I would write a new gc algorithm into the vm.I should how to do.
Thank you.

Re: [drlvm]how to write garbage collection algorithm into the vm

Posted by Xiao-Feng Li <xi...@gmail.com>.
Lyon, the link Alexei gave is a very good reference for a GC newcomer.
At the same time, you can also study the GC implementation under
gc_gen/, which is designed to be modular so that a new algorithm can
be easily ( well, depends on who says :-) developed and integrated.
The common entry is gc_alloc() function that tells how a new object is
allocated, and gc_reclaim_heap() that is the entry for a garbage
collection.

It would be good if you can tell us what algorithm you are going to
develop, then probably we can give you some concrete suggestions.

Thanks,
xiaofeng

On Thu, Mar 13, 2008 at 10:09 PM, lyon <us...@gmail.com> wrote:
> Hi everyony,
>  I am a student.
>  I just started to pay attention to the harmony.
>  If I would write a new gc algorithm into the vm.I should how to do.
>  Thank you.
>



-- 
http://xiao-feng.blogspot.com

Re: [drlvm]how to write garbage collection algorithm into the vm

Posted by Alexei Fedotov <al...@gmail.com>.
Hello Lyon,
The first place I'd suggest looking at is the following link [1].
Please don't hesitate to ask if you have more questions.

[1] http://harmony.apache.org/subcomponents/drlvm/gc-howto.html

On Thu, Mar 13, 2008 at 5:09 PM, lyon <us...@gmail.com> wrote:
> Hi everyony,
>  I am a student.
>  I just started to pay attention to the harmony.
>  If I would write a new gc algorithm into the vm.I should how to do.
>  Thank you.
>



-- 
With best regards,
Alexei