Just embed word in the header of each object to record accessing thread. Use to r/w barrier to compare if the current accessing thread is different from previous accessing thread recorded in the object header. If so, the object is shared? Would this work for you?
btw, I'm not quite got what did it mean that barrier implementation is per mutator thread.

Thanks.

Du

On Fri, Sep 23, 2011 at 10:38 AM, Jagadish Kotra <jagadishkotra@gmail.com> wrote:

Hello,

 I am trying to figure out a way to find all the objects shared by various
Java application threads over the execution of a Java program ? I understand
JVMTI events can be used for the same but I am not sure if JIKES RVM has
such functionality implemented as of now ? Can I use read/write barriers for
acheiving the same ? I have looked at the JIKES code but could see the
barrier implementation is per mutator thread.

 I appreciate your help on this!

Regards,
Jagadish.
--
View this message in context: http://old.nabble.com/Object-sharing-between-Java-Threads-tp32503878p32503878.html
Sent from the jikesrvm-researchers mailing list archive at Nabble.com.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers