BusyJay commented on code in PR #2890:
URL: https://github.com/apache/brpc/pull/2890#discussion_r2021080425
##########
src/bthread/task_group.cpp:
##########
@@ -255,6 +297,15 @@ int TaskGroup::init(size_t runqueue_capacity) {
return 0;
}
+#ifdef BUTIL_USE_ASAN
+void TaskGroup::asan_task_runner(intptr_t) {
+ // This is a new thread, and it doesn't have the fake stack yet. ASan will
+ // create it lazily, for now just pass NULL.
+ internal::FinishSwitchFiber(NULL);
Review Comment:
应该可以根据 skip_remained 这个参数是否为 0 来判断当前 runner 是否是从其他 btrhead 跳过来的,如果是才需要调用
finish。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]