In general is not not so much "will crash" but "will not run"
On Sun, Mar 19, 2017 at 12:52 AM, T L <tapir....@gmail.com> wrote: > > > On Sunday, March 19, 2017 at 3:03:21 AM UTC+8, T L wrote: >> >> 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? >> > > sorry, here "atomically", I mean "automatically". > > -- > 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. > -- Michael T. Jones michael.jo...@gmail.com -- 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.