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.


Yan Tang

On Wed, Mar 26, 2008 at 9:19 AM, Sean Cheng <> 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
Can anyone help me?


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:
Sent from the jikesrvm-researchers mailing list archive at

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.;164216239;13503038;w?
Jikesrvm-researchers mailing list