atwww

Results 1 issues of atwww

## 拉取/合并请求描述:(PR description) [ #### 为什么提交这份PR (why to submit this PR) 修复C++11 thread_local对象析构函数与实际内存释放动作顺序相反问题 原实现方案缺陷:顺序遍历_pthread_key数组,调用TLS析构函数,这导致可能首先遍历到emutls_key_destructor清除实际分配内存,后续才遍历到对象析构函数,造成use after free内存安全隐患,例如,当对象中存在指针时,需要先调用析构函数释放对应指针空间 #### 你的解决方案是什么 (what is your solution) 使用emutls_pthread_key作为标志,从emutls_pthread_key标志前一个index开始倒序遍历, 使得emutls_key_destructor最后被调用 #### 请提供验证的bsp和config (provide the config and...