This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 63042a38bd [fix](memtracker) Fix high frequency load slow lock in
memtracker (#16244)
63042a38bd is described below
commit 63042a38bd68c243109ccba1d8afe16367dcb6a9
Author: Xinyi Zou <[email protected]>
AuthorDate: Thu Feb 2 09:53:44 2023 +0800
[fix](memtracker) Fix high frequency load slow lock in memtracker (#16244)
Global lock stuck in memtracker when bthread is frequently created
---
be/src/runtime/thread_context.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/be/src/runtime/thread_context.h b/be/src/runtime/thread_context.h
index e72840373f..e30944e7c8 100644
--- a/be/src/runtime/thread_context.h
+++ b/be/src/runtime/thread_context.h
@@ -344,8 +344,6 @@ private:
do { \
if (doris::thread_context_ptr.init) { \
doris::thread_context()->thread_mem_tracker_mgr->consume(size); \
- } else { \
- doris::ThreadMemTrackerMgr::consume_no_attach(size); \
} \
} while (0)
// NOTE, The LOG cannot be printed in the mem hook. If the LOG statement
triggers the mem hook LOG,
@@ -360,16 +358,12 @@ private:
} else {
\
doris::thread_context()->thread_mem_tracker_mgr->consume(size); \
}
\
- } else {
\
- doris::ThreadMemTrackerMgr::consume_no_attach(size);
\
}
\
} while (0)
#define RELEASE_MEM_TRACKER(size) \
do { \
if (doris::thread_context_ptr.init) { \
doris::thread_context()->thread_mem_tracker_mgr->consume(-size); \
- } else { \
- doris::ThreadMemTrackerMgr::consume_no_attach(-size); \
} \
} while (0)
#else
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]