Thread safety and nethod handle chains
Rémi Forax
forax at univ-mlv.fr
Thu Aug 11 15:01:49 PDT 2011
On 08/11/2011 11:39 PM, Mark Roos wrote:
> As I start to look at the multithreading aspects of the Smalltalk
> implementation I can see a situation where
> two threads could be running down the GWT lookup path both looking for
> the same implementation. I was
> thinking of making the lookup synchronized but then what if two
> threads are in the GWT pipeline looking for the
> same implementation. One gets to the lookup first and finds the
> method. Now is it possible that the second thread
> had entered the call site but is suspended between the site and the
> lookup? In that case the lookup will have been
> done but the second thread has passed the GWT for it (its added to the
> start).
>
> I am thinking that I may just accept the fact that there could be
> duplicate GWTs in the chain. Or is there a better
> approach?
Yes, you can have duplicate GWTs and
I'm also interested if someone find a better approach :)
>
> Thanks
>
> mark
cheers,
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110812/b6080b0a/attachment.html
More information about the mlvm-dev
mailing list