PR libstdc++/55917 do not handle exceptions in std::thread 76/253776/2 submit/tizen_5.5_base/20210218.234328 submit/tizen_5.5_base/20210218.234404
authorJonathan Wakely <jwakely@redhat.com>
Mon, 12 Jun 2017 16:37:28 +0000 (17:37 +0100)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 18 Feb 2021 02:20:11 +0000 (11:20 +0900)
commitd499d1bed33ddbf78165d65752ed0cade4816e60
treeb96f0dfa34cb36b0923c32090b4f060b1604720d
parentddb7e921d8d950d5f83ef3f7077aedb48bc40067
PR libstdc++/55917 do not handle exceptions in std::thread

PR libstdc++/55917
* src/c++11/thread.cc (execute_native_thread_routine): Remove
try-block so that exceptions propagate out of the thread and terminate
is called by the exception-handling runtime.
(execute_native_thread_routine_compat): Likewise.
* testsuite/30_threads/thread/cons/terminate.cc: New.

From-SVN: r249130
Cherry-picked from upstream: 754d67d5ba4a1f9994210d402893a4cf49ce6a71

Change-Id: I0b9f657537d07cb6bff8aef2a5cde851111c3ff4
libstdc++-v3/ChangeLog
libstdc++-v3/src/c++11/thread.cc
libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc [new file with mode: 0644]