You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2022/09/12 02:22:00 UTC

[doris] branch master updated: [Enhancement](ChunkAllocator) Constructor of singleton class should be private #12516

This is an automated email from the ASF dual-hosted git repository.

yiguolei 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 e879c26232 [Enhancement](ChunkAllocator) Constructor of singleton class should be private #12516
e879c26232 is described below

commit e879c2623228c95c6222b3f58f420579b5484127
Author: weizuo93 <we...@apache.org>
AuthorDate: Mon Sep 12 10:21:49 2022 +0800

    [Enhancement](ChunkAllocator) Constructor of singleton class should be private #12516
    
    Co-authored-by: weizuo <we...@xiaomi.com>
---
 be/src/runtime/memory/chunk_allocator.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/runtime/memory/chunk_allocator.h b/be/src/runtime/memory/chunk_allocator.h
index fef62e6db8..0d57e2bd30 100644
--- a/be/src/runtime/memory/chunk_allocator.h
+++ b/be/src/runtime/memory/chunk_allocator.h
@@ -60,8 +60,6 @@ public:
     static ChunkAllocator* instance() { return _s_instance; }
 #endif
 
-    ChunkAllocator(size_t reserve_limit);
-
     // Up size to 2^n length, allocate a chunk.
     Status allocate_align(size_t size, Chunk* chunk);
 
@@ -77,6 +75,8 @@ public:
 private:
     friend class MemPool;
 
+    ChunkAllocator(size_t reserve_limit);
+
     // Allocate a Chunk with a power-of-two length "size".
     // Return true if success and allocated chunk is saved in "chunk".
     // Otherwise return false.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org