LemonBoy 7c13bec7cb std: make the use of pthread_join POSIX-compliant
Applications supplying their own custom stack to pthread_create are not
allowed to free the allocated memory after pthread_join returns as,
according to the specification, the thread is not guaranteed to be dead
after the join call returns.

Avoid this class of problems by avoiding the use of a custom stack
altogether, let pthread handle its own resources.

Allocations made on the child stack are now done on the C heap.

Thanks @semarie for noticing the problem on OpenBSD and suggesting a
fix.

Closes #7275
2020-12-02 16:16:31 -07:00
..
2020-11-01 15:40:42 -05:00
2020-10-28 10:03:23 +01:00
2020-11-25 16:47:44 -07:00
2020-11-02 13:20:58 -05:00
2020-11-30 11:40:44 -07:00
2020-09-04 05:15:03 +03:00
2020-09-11 20:02:41 -04:00
2020-10-07 04:34:09 -04:00
2020-12-02 16:16:02 -07:00
2020-12-01 17:14:43 -07:00
2020-09-04 22:49:14 +03:00
2020-09-22 05:12:21 -07:00