You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Senaka Fernando <se...@gmail.com> on 2008/04/06 18:39:50 UTC

Can you explicitly free an object without calling the GC?

Hi all,

Can you explicitly free an object without calling the GC? It seems that
Parrot's GC interface exposes methods to free a specific object instead of
getting the GC to collect it. Does Harmony have something similar?

Regards,
Senaka

Re: Can you explicitly free an object without calling the GC?

Posted by Alexei Fedotov <al...@gmail.com>.
Senaka,
This is a good question.

Harmony GC interface does not allow freeing objects. From the other
side if JIT is able to determine boundaries of the object life cycle
and bound them to a stack, it allocates objects on the stack, so they
are freed automatically. This is called escape analysis and should be
out of scope for now.

Thanks.

On Sun, Apr 6, 2008 at 8:39 PM, Senaka Fernando <se...@gmail.com> wrote:
> Hi all,
>
>  Can you explicitly free an object without calling the GC? It seems that
>  Parrot's GC interface exposes methods to free a specific object instead of
>  getting the GC to collect it. Does Harmony have something similar?
>
>  Regards,
>  Senaka
>



-- 
With best regards,
Alexei