TaggedArrays

Mark Roos mroos at roos.com
Wed Sep 12 14:18:59 PDT 2012


Nice to see progress.

I was just thinking about the use model for these in my app and found
three obvious uses:
        To hold the temps on the stack frame  ( TaggedArray of 
TaggedArrays + primitives )
        To hold the instance vars of a class
        To collect arguments for a method send  ( and probably use one as 
a return as well)

At the extreme each of my objects would be represented as a TaggedArray 
where the
first location could be the Class identifier.

It seems that these will add at least one level on indirection for every 
access
along with whatever overhead the access adds.  The hope is that Hotspot 
sees the
primitives within a method and across a dynamic send so I end up with 
primitive
performance.  At least eliminating the performance hit of boxed ints.  I 
am still not
sure how to use this to reduce the number of Integers generated.

Are my thoughts following a reasonable path?  As is this the intent of 
TaggedArrays?

Thanks
mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120912/8a62a639/attachment.html 


More information about the mlvm-dev mailing list