xinyiZzz commented on a change in pull request #8322:
URL: https://github.com/apache/incubator-doris/pull/8322#discussion_r824330658



##########
File path: be/src/util/mem_info.h
##########
@@ -34,6 +34,8 @@ class MemInfo {
     // Initialize MemInfo.
     static void init();
 
+    static inline bool initialized() { return _s_initialized; }

Review comment:
       Used in MemTracker::check_sys_mem_info to determine whether the check 
exceeds the upper limit during try consume.
   
   (Actually, the problem of MemTracker try consume before MemInfo is 
initialized will only exist when TCMalloc Hook new/delete later)




-- 
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]

Reply via email to