This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 8cd9fd1e892 branch-2.1: [fix](memory) Fix `thread_mem_tracker()` performance (#50524) 8cd9fd1e892 is described below commit 8cd9fd1e8929e3826b6585b075320ebafbb8656a Author: Xinyi Zou <zouxi...@selectdb.com> AuthorDate: Tue Apr 29 10:22:32 2025 +0800 branch-2.1: [fix](memory) Fix `thread_mem_tracker()` performance (#50524) --- be/src/runtime/thread_context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/runtime/thread_context.h b/be/src/runtime/thread_context.h index 3fbb194c87f..803175466f9 100644 --- a/be/src/runtime/thread_context.h +++ b/be/src/runtime/thread_context.h @@ -227,8 +227,8 @@ public: // to nullptr, but the object it points to is not initialized. At this time, when the memory // is released somewhere, the hook is triggered to cause the crash. std::unique_ptr<ThreadMemTrackerMgr> thread_mem_tracker_mgr; - [[nodiscard]] std::shared_ptr<MemTrackerLimiter> thread_mem_tracker() const { - return thread_mem_tracker_mgr->limiter_mem_tracker(); + [[nodiscard]] MemTrackerLimiter* thread_mem_tracker() const { + return thread_mem_tracker_mgr->limiter_mem_tracker_raw(); } QueryThreadContext query_thread_context(); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org