From: yau m. <mei...@ya...> - 2005-09-22 06:16:21
|
hi, I have come across the file OPT_GenerateMagic which inlines appropriate code for the VM_Magic.threadSwitch method. I can hardly make a trace to instrument thread switches during run time from this file and I don't think so am in the correct way. As what you have suggested to emit a few instructions in the compiler, am having a difficulty in identifying the correct file and where can I instrument thread switches which is called from the dispatch on every VM_Magic.threadSwitch It would be helpful if anyone can help to assist me further in this. Thank you Meileng Master Student FIT Multimedia University Malaysia --- Eliot Moss <mo...@cs...> wrote: > Meiling -- Essentially ALL VM_Magic routines are > "hijacked" by the > compiler. That's how magics work. They are not > directly expressible in > Java, following the rules. Both baseline and > optimizing compilers, when > they see any given magic, generate specialized code > for it. If you want to > instrument thread switches, you _might_ want/need to > change the compilers > to emit extra instructions in the sequence, etc., > but of course this > requires care :-). In any case, you might want to > investigate to see what > the sequence _is_. > > Hope this helps ..... Eliot > ============================================================================== > J. Eliot B. Moss, Associate Professor > http://www.cs.umass.edu/~moss www > Director, Arch. and Lang. Impl. Lab. > +1-413-545-4206 voice > Department of Computer Science > +1-413-695-4226 cell > 140 Governor's Drive, Room 372 > +1-413-545-1249 fax > University of Massachusetts at Amherst > mo...@cs... email > Amherst, MA 01003-9264 USA > +1-413-545-3733 Priscilla Coe sec'y > ============================================================================== > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's > Geronimo App Server. Download > it for free - -and be entered to win a 42" plasma tv > or your very own > Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > Jikesrvm-researchers mailing list > Jik...@li... > https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |