You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2023/02/02 01:53:50 UTC
[doris] branch master updated: [fix](memtracker) Fix high frequency load slow lock in memtracker (#16244)
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 <zo...@gmail.com>
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org