RtalkTest examination

Tom Rodriguez tom.rodriguez at oracle.com
Wed Aug 31 12:55:05 PDT 2011


On Aug 31, 2011, at 12:23 PM, Mark Roos wrote:

> Very interesting,  I see that I need a hint for the class/method name. ( it is the source file name but that doesn't print here) 
> 
> getNIl/true and false are currently a probe into a hash map but should be a static var.  I can 
> see that it could get pretty large to inline.  There are some other objects as well that get used 
> a lot as constants shared between java and Rtalk. 
> 
> The deep GWTs are rare normally but appear here due to a method like 
> 
>         Object allSublclasses do:[ :o | o name]. 
> 
> There are about 140 classes so the name call site will have a GWT depth of 140. 
> and [] resolves to a java method like block$n.  You do see it a lot as I needed it to get 
> the class def not found error. 
> 
> If you look at the depth list ( middle of the console print) you see all of sites with a depth > 2 and its 
> only a few out of the 1000. 
> 
> I'll tweak the code and put up another example. 
> 
> For tom would it be better if I had a test that had only a few GWTs per site? 

I got what I needed out of it but I think you might want to reconsider this structure.  Using GWT in a  chain that long isn't really going to perform that well, even if it does get compiled and inlined.

tom

> 
> thanks 
> 
> mark_______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev



More information about the mlvm-dev mailing list