¡@

Home 

java Programming Glossary: jne

Why volatile in java 5+ doesn't synchronize cached copies of variables with main memory?

http://stackoverflow.com/questions/10620680/why-volatile-in-java-5-doesnt-synchronize-cached-copies-of-variables-with-main

Test 1 run@7 line 13 0x021dd75e cmp 0x0 edx 0x021dd761 jne 0x021dd788 ifne Test 1 run@13 line 17 0x021dd767 nop 0x021dd768.. Test 1 run@10 line 17 0x0226d779 cmp 0x0 edx 0x0226d77c jne 0x0226d7a8 ifne Test 1 run@13 line 17 0x0226d782 nopw 0x0.. Test 1 run@10 line 17 0x0226d779 cmp 0x0 edx 0x0226d77c jne 0x0226d7a8 ifne Test 1 run@13 line 17 While the run that printed..

Is volatile expensive?

http://stackoverflow.com/questions/4633866/is-volatile-expensive

l Test2 run@0 line 33 0xb396cea9 cmp ecx ebp 0xb396ceab jne 0xb396ceaf 0xb396cead cmp ebx edi 0xb396ceaf je 0xb396cece getstatic.. mov 0xffffffff ebx 0xb396cebb cmp ecx ebp 0xb396cebd jne 0xb396cec1 0xb396cebf cmp ebx edi 0xb396cec1 je 0xb396ceeb return.. l Test2 run@0 line 32 0xb3ab9372 cmp ecx eax 0xb3ab9374 jne 0xb3ab9378 0xb3ab9376 cmp ebx edx 0xb3ab9378 je 0xb3ab93ac 0xb3ab937a..