commit | 48367e2f1a68608d83207d4398767f8ffc0961f3 | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Sun Dec 22 22:44:08 2013 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Fri Dec 27 12:40:47 2013 -0500 |
tree | e2d486e0abbae9ba4aed889d94a1df506bf287f2 | |
parent | b7558a36203aaf08cbe698e6495bf6db096433ec [diff] |
Always perform thread cleanup on MainThread stack. The thread cleanup was being performed on whatever thread stack was next in the list. However, with high debugging this causes spurious _free() debug messages to show up in random threads which can be confusing when analyzing the debug output. So, always run __end_thread() on the MainThread stack to prevent this confusion. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>