Vytautas Astrauskas
|
331dbd1469
|
Add a test for joining in a destructor.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
f204b67b0f
|
Merge dtors_running and last_dtor_key fields.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
356aecce7f
|
Add a FIXME.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
207c6e7fa7
|
Improve comments and code clarity.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
9ba3ef2a44
|
Change representation and conversion of ThreadId and BlockSetId.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
174adad2b3
|
Use DLL_THREAD_DETACH when calling windows TLS destructor.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
d9e18ada39
|
Make sure to remove thread local data only if we have destructor.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
911ff7eade
|
Improve style and comments.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
c4574dde8d
|
Many small changes to clean up code.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
6842eb2b84
|
Rename global tls dtor to thread dtor.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
39efdf31cf
|
Move prctl test to the same file as other libc tests.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
60cd8aa4b0
|
Delete a duplicate test.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
64164b10e8
|
Improve comments.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
ff5e35b90a
|
Added a test that joining main is UB.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
bc9d007e3e
|
Improve Debug formatting of the thread name.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
04abf066f1
|
Move copying of the thread name to the client side.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
feb188360e
|
Unify TLS dtors; move stepping outside.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
8240ed26a9
|
Change the test not to rely on internals.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
90e9a87fa7
|
Add an explanatory comment to the test.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
cc9248a7c8
|
Ignore prctl test on MacOS because it does not support it.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
eaa63266d8
|
Make multiple threads to try to join a thread while it is still running.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
d45e985669
|
Clarify FIXME.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
8a7dbde372
|
Check prctl argument types and fix the test.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
40e50bf58b
|
Clarify test comments.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
e7b82fde4a
|
Fix the test annotation.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
e7c2694b8b
|
Make the main thread detached.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
69eaaadc28
|
Fix merge error.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
452e36efb3
|
Print the thread name in Debug.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
3bb1657448
|
Small style fix.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
9a01c3fa3e
|
Clarify comments about TLS destructor handling in Windows, add a test for TLS destructors.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
e4dc3567f8
|
Track if a thread was already joined.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
5b55e0706c
|
Add more concurrency tests.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
17f7bc86ae
|
Fix how a pthread_create function argument is constructed.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
80459bbf77
|
Improve concurrency tests.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
94cbe88e80
|
Many small changes to thread management.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
75e6549c11
|
Improve prctl, add a test.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
eab38dfe00
|
Change the warning message.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
69df2e19de
|
Move prctl to Linux specific shims.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
d6c03926ab
|
Rename MacOS set global dtor function.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
c84b2890ad
|
Update a comment in README about what concurrency checks we support.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
421be273cc
|
Add concurrency tests.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
46fd333daa
|
Implement thread::yield_now.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
134533d066
|
Add a comment explaining global destructors on MacOS.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
d062f63519
|
Fix support for MacOS.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
44e9305599
|
Rename threads to thread to match the Rust standard library.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
a585dc8289
|
Add a missing newline.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
688cacbdd7
|
Cleanup the implementation of adjust_global_const.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
1d0eb93ebd
|
Fix typo in a comment.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
94118d4d9a
|
Make an assert message consistent with other asserts.
|
2020-04-27 14:26:36 -07:00 |
|
Vytautas Astrauskas
|
552080a5b7
|
Fix imports.
|
2020-04-27 14:26:36 -07:00 |
|