« Return to Thread: [rvm-research] Adding a new class to the MMTk

Re: [rvm-research] Adding a new class to the MMTk

by Robin Garner :: Rate this Message:

Reply to Author | View in Thread

MMTk is a very restrictive programming environment.  Among the things you can't do are:
- Allocate objects
- Trigger read/write barriers
- Throw exceptions
This pretty much excludes calling any java library code.

If you want to do analysis that requires complex data structures, I recommend dumping information to a file (using Log.write*) and analysing it offline.  If you really do need to do your analysis/debugging online, go back a few weeks in the archives of this list and you'll see a discussion on how to build complex data structures in uninterruptible code.

If you're debugging MMTk code in a recent version of JikesRVM, the MMTk debugging harness (see the user guide) removes these restrictions :)

Regards,
Robin

Cristian Perfumo wrote:

>Thanks, Dave,
>
>I solved this particular problem by declaring My_class uninterruptible. But I wonder... ¿is there another workaround for it?. If I wanted to use hashtables and complex things within methods of My_class... is there a way of doing it? Of course I just want to do this for debugging information, since it will kill the performance.
>
>Regards.
>
>Cristian
>
>On Tue, Jun 16, 2009 at 12:45 PM, David P Grove <groved@... <mailto:groved@... (javascript:main.compose()>> wrote:
>
>    Cristian Perfumo <cperfumo@... <mailto:cperfumo@... (javascript:main.compose()>>
>    wrote on 06/16/2009 06:34:41 AM:
>
>    > Everything looks fine, I have all the imports needed but after
>    > executing "ant" to recompile the RVM i get:
>
>
>    > BUILD FAILED
>    > /home/cperfumo/jikes/jikesrvm-3.0.1/build.xml:1417: WARNING:
>    > UNINTERRUPTIBLE VIOLATION
>
>    Take a look at the BootImageWriterOutput.txt file (should be in
>    the target/<your-config>) directory.  It will have the detailed
>    error message.  The problem is that an uninterruptible hunk of
>    code is calling something that isn't uninterruptible.  The
>    detailed message will tell you exactly where that is happening.
>
>    --dave
>
>    ------------------------------------------------------------------------------
>    Crystal Reports - New Free Runtime and 30 Day Trial
>    Check out the new simplified licensing option that enables unlimited
>    royalty-free distribution of the report engine for externally facing
>    server and web deployment.
>    http://p.sf.net/sfu/businessobjects (http://p.sf.net/sfu/businessobjects)
>    _______________________________________________
>    Jikesrvm-researchers mailing list
>    Jikesrvm-researchers@...
>    <mailto:Jikesrvm-researchers@... (javascript:main.compose()>
>    https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers (https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers)
>
>
>------------------------------------------------------------------------
>
>------------------------------------------------------------------------------
>Crystal Reports - New Free Runtime and 30 Day Trial
>Check out the new simplified licensing option that enables unlimited
>royalty-free distribution of the report engine for externally facing server and web deployment.
>http://p.sf.net/sfu/businessobjects (http://p.sf.net/sfu/businessobjects)
>------------------------------------------------------------------------
>
>_______________________________________________
>Jikesrvm-researchers mailing list
>Jikesrvm-researchers@...
>https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers (https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers)





------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

 « Return to Thread: [rvm-research] Adding a new class to the MMTk