пятница, 8 июля 2011 г.

jvm reordering tests

I was playing with java memory visibility and wrote a few tests for reordering. My examples break java safe publication idiom, so the jvm is free to reorder constructor instructions and object link initialization. But no reordering effect I've got so far, seems modern architectures don't allow it anymore