Sean,

GC is triggered when the application tries to request more memory.  It usually in the implementation of
"new" function.

I remember there is a "poll" function in that part of codes.  If "poll" finds that memory pressure is high,
then, it will pause current "new" request, and first do a GC.  Otherwise, direct allocate memory space for
the request.  There is also two parts of codes.  One is slow_alloc, and the other is fast_alloc.  You can
search the coes.

Thanks.

Yours,
Yan Tang

On Wed, Mar 26, 2008 at 9:19 AM, Sean Cheng <m9402126@mail.ntust.edu.tw> wrote:


Eliot Moss wrote:
>
>
> Basically, it will trigger GC when some allocation area fills up. There is
> no single GC in Jikes RVM, so to answer your question much more
> specifically would require knowing which GC you built into your system.
>
>
> If you ask your question in the context of a particular GC /
> configuration,
> then someone might be able to give you a more precise answer.
>

I want to know when to trigger GC in "refcount" of JikesRVM-2.9.1.
I searched the previous messages, and found this queston about triggering
GC.
Can anyone help me?

sean


Eliot Moss wrote:
>
> so, it is
> usually possible to obtain some log information for the GC component,
> telling you how many GCs it did, and even to get a log entry for each GC
> performed.
>
>
>
>
>
>

--
View this message in context: http://www.nabble.com/When-to-trigger-GC-in-RVM--tp1348621p16300891.html
Sent from the jikesrvm-researchers mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers