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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by Cristian Perfumo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey!
I added a new class file to package org.mmtk.utility.statistics: My_class.java. The class contains one single method:

    public static void println(String s){
        Log.writeln(s);
    }

Now, I want to call this method from package org.mmtk.plan.generational.GenMutator.

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

The class gets compiled correctly as My_class.class does exist. In fact, if I comment out the line in org.mmtk.plan.generational.GenMutator invoking My_class.println(), the RVM gets built successfully.

Any idea of what I am missing?

Thank you very much.

Cristian

------------------------------------------------------------------------------
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

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

by David P Grove :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cristian Perfumo <cperfumo@...> 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
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers


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

by Cristian Perfumo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> wrote:

Cristian Perfumo <cperfumo@...> 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
_______________________________________________
Jikesrvm-researchers mailing list
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

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

by Robin Garner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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