This is an automated email from the ASF dual-hosted git repository. dataroaring 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 47509e65c9 [fix](memory)page no use Allocator, avoid ckbench oom (#19877) 47509e65c9 is described below commit 47509e65c9b79d79f6c30894d786947084e5fdab Author: Xinyi Zou <zouxiny...@gmail.com> AuthorDate: Fri May 19 21:23:31 2023 +0800 [fix](memory)page no use Allocator, avoid ckbench oom (#19877) --- be/src/olap/page_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/olap/page_cache.h b/be/src/olap/page_cache.h index cc52f4a252..3473573e8f 100644 --- a/be/src/olap/page_cache.h +++ b/be/src/olap/page_cache.h @@ -41,7 +41,7 @@ public: PageBase() : _data(nullptr), _size(0), _capacity(0) {} PageBase(size_t b) : _size(b), _capacity(b) { - _data = reinterpret_cast<char*>(TAllocator::alloc(_capacity, ALLOCATOR_ALIGNMENT_16)); + _data = new char[_capacity]; ExecEnv::GetInstance()->page_no_cache_mem_tracker()->consume(_capacity); } @@ -51,7 +51,7 @@ public: ~PageBase() { if (_data != nullptr) { DCHECK(_capacity != 0 && _size != 0); - TAllocator::free(_data, _capacity); + delete[] _data; ExecEnv::GetInstance()->page_no_cache_mem_tracker()->release(_capacity); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org