| 233 | } |
| 234 | |
| 235 | TaskGroup::~TaskGroup() { |
| 236 | if (_main_tid) { |
| 237 | TaskMeta* m = address_meta(_main_tid); |
| 238 | CHECK(_main_stack == m->stack); |
| 239 | #ifdef BUTIL_USE_ASAN |
| 240 | _main_stack->storage.bottom = NULL; |
| 241 | _main_stack->storage.stacksize = 0; |
| 242 | #endif // BUTIL_USE_ASAN |
| 243 | return_stack(m->release_stack()); |
| 244 | return_resource(get_slot(_main_tid)); |
| 245 | _main_tid = 0; |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | #ifdef BUTIL_USE_ASAN |
| 250 | // Returns the **highest** address of the calling pthread's stack and its |
nothing calls this directly
no test coverage detected