Inlining heuristic trouble

Rémi Forax forax at univ-mlv.fr
Tue Jun 21 01:20:16 PDT 2011


On 06/21/2011 09:50 AM, Mark Roos wrote:
> Thanks for the example Rémi
>
> Out of curiosity why is the fallback method synchronized?  Something 
> to do with SwitchPoints?

No, SwitchPoint primary use case is metaclass modification/alteration.
The problem is that several threads may want to update the same dispatch 
table.
If there is no synchronization the table after updates may contains
class of one thread and target method of another.

As I said, I think it's better to use an immutable table here, but I 
have to do some perf test.

>
> thanks
> mark

cheers,
Rémi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110621/73eb055a/attachment.html 


More information about the mlvm-dev mailing list