This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 941acab9b80 branch-3.0: [fix](runtime) untracked reserved memory was
not release when attaching limiter tracker (#43709)
941acab9b80 is described below
commit 941acab9b80f9c65aeb6cca98252561e7f4b2e44
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Nov 14 14:14:19 2024 +0800
branch-3.0: [fix](runtime) untracked reserved memory was not release when
attaching limiter tracker (#43709)
Cherry-picked from #43447
Co-authored-by: Jerry Hu <[email protected]>
---
be/src/runtime/memory/thread_mem_tracker_mgr.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/be/src/runtime/memory/thread_mem_tracker_mgr.cpp
b/be/src/runtime/memory/thread_mem_tracker_mgr.cpp
index d0365645285..3b40426f6ef 100644
--- a/be/src/runtime/memory/thread_mem_tracker_mgr.cpp
+++ b/be/src/runtime/memory/thread_mem_tracker_mgr.cpp
@@ -51,6 +51,7 @@ void ThreadMemTrackerMgr::attach_limiter_tracker(
// _untracked_mem temporary store bytes that not synchronized to
process reserved memory,
// but bytes have been subtracted from thread _reserved_mem.
doris::GlobalMemoryArbitrator::release_process_reserved_memory(_untracked_mem);
+ _limiter_tracker->release_reserved(_untracked_mem);
_reserved_mem = 0;
_untracked_mem = 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]