On Wednesday, February 1, 2017 4:33:29 PM CET Bert Wesarg wrote:
> All,
> 
> this function has a static function variable named 'sec_hdrs', which
> is used to read from a file. Hoe is this supposed to be thread safe?
> 
> Link to gihub:
> 
> https://github.com/libunwind/libunwind/blob/master/src/dwarf/Gfind_proc_info
> -lsb.c#L540

>From a cursory glance, it clearly isn't thread safe. Making it a non-static 
stack variable should keep the performance and make it thread safe, if I'm not 
mistaken.

-- 
Milian Wolff
[email protected]
http://milianw.de

_______________________________________________
Libunwind-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to