don't acquire lock if the collator has been already created (#24973)
authorAdam Sitnik <adam.sitnik@gmail.com>
Sun, 9 Jun 2019 11:39:29 +0000 (13:39 +0200)
committerJan Kotas <jkotas@microsoft.com>
Sun, 9 Jun 2019 11:39:29 +0000 (04:39 -0700)
commit563d5c4570575b25bd86cb14be2bad5f23238f95
treec0ee2ab2c8c0347c1a05af8575cde3f4b366c80b
parentb1a841249bd23d94a5c88684d57a0dbdd92cac86
don't acquire lock if the collator has been already created (#24973)

* don't acquire lock if the collator has been already created

* use atomic_compare_exchange_strong instead of __sync_bool_compare_and_swap

* don't try to workaround clang 5.0 bug, just use __atomic_compare_exchange_n
src/corefx/System.Globalization.Native/config.h.in
src/corefx/System.Globalization.Native/pal_collation.c