re PR libgcc/71744 (Concurrently throwing exceptions is not scalable)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Sep 2016 19:17:47 +0000 (21:17 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Sep 2016 19:17:47 +0000 (21:17 +0200)
commit299910482fcd0627fe1162c1fedbcd09b5630ffe
tree66a335c06c85833590a8c8c17b8332a42d78e963
parent84c08ec96a558fcb648e27f3f4a2e7532079d5bd
re PR libgcc/71744 (Concurrently throwing exceptions is not scalable)

PR libgcc/71744
* unwind-dw2-fde.c (ATOMIC_FDE_FAST_PATH): Define if __register_frame*
is not the primary registry and atomics are available.
(any_objects_registered): New variable.
(__register_frame_info_bases, __register_frame_info_table_bases):
Atomically store 1 to any_objects_registered after registering first
unwind info.
(_Unwind_Find_FDE): Return early if any_objects_registered is 0.

From-SVN: r240193
libgcc/ChangeLog
libgcc/unwind-dw2-fde.c