Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-15 Thread Ming Wu
2006/6/14, Weldon Washburn [EMAIL PROTECTED]: Alex, It looks like the JIT needs to support write barriers written in both C as well as Java. Its probably best to think of the C write barrier as a conventional vm helper call. For a garbage collector written in Java like MMTk, the write

Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-14 Thread Alex Astapchuk
Ming, The above is just a consideration for infrastructure. I have already implemented the write barrier code in jet for some GC developed in C. It has already been tested and attached file is the patch. Cool ! Thanks for the patch ! I'm not too familiar with GC stuff, but seems you are

Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-14 Thread Weldon Washburn
Alex, It looks like the JIT needs to support write barriers written in both C as well as Java. Its probably best to think of the C write barrier as a conventional vm helper call. For a garbage collector written in Java like MMTk, the write barrier is actually Java code. Injecting a vm helper

Re: [DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-09 Thread 鸣伍
hi, guys The way to use gen_invoke to call a Java write barrier should work, and the better way may be inlining the barrier code. Maybe jet can not do inlining, but jitrino.opt should do it. Alex's idea is not so bad. It is right that the cost will be high if we'll have a JNI call on every

[DRLVM] write barrier -- some preliminary design ideas for Jitrino.JET

2006-06-01 Thread Weldon Washburn
All, I have been reading both MMTK and Jitrino.JET sources with write barrier design specifically in mind. Below are my current thoughts. Integrating MMTK with Jitrino.JET. In Compiler::gen_field_op(), use gen_invoke() to emit a call to org.mmtk.plan.PlanLocal.writeBarrier(ObjectReference src,