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

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to