At the end of sync/atomic package docs, it says

On x86-32, the 64-bit functions use instructions unavailable before the 
Pentium MMX. 


On non-Linux ARM, the 64-bit functions use instructions unavailable before 
the ARMv6k core. 


So when running Go programs which call the 64-bit atomic functions on above 
mentioned machines, programs will crash?


If it is true, is it good idea to add a compiler option to convert the 
64-bit function calls to mutex calls?

And is it possible to do the conversions at run time?


And I read from somewhere which says Go authors are some regretted to 
expose the atomic functions,

for these functions are intended to be used in standard packages internally.

So is it a good idea to recommend gophers to use mutex over atomic and 
convert some mutex calls to atomic calls atomically by compiler?


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to