提交 fe243236 编写于 作者: H HexToString

dont release

上级 4a8b270c
...@@ -501,7 +501,6 @@ class FluidInferEngine : public CloneDBReloadableInferEngine<EngineCore> { ...@@ -501,7 +501,6 @@ class FluidInferEngine : public CloneDBReloadableInferEngine<EngineCore> {
paddle::PaddleBuf paddleBuf(databuf_char, databuf_size); paddle::PaddleBuf paddleBuf(databuf_char, databuf_size);
tensor_out.data = paddleBuf; tensor_out.data = paddleBuf;
tensorVector_out_pointer->push_back(tensor_out); tensorVector_out_pointer->push_back(tensor_out);
MempoolWrapper::instance().free(databuf_char, databuf_size);
} }
return 0; return 0;
} }
......
...@@ -126,7 +126,7 @@ void MempoolWrapper::free(void* p, size_t size) { ...@@ -126,7 +126,7 @@ void MempoolWrapper::free(void* p, size_t size) {
<< ", since mempool is not thread initialized"; << ", since mempool is not thread initialized";
return; return;
} }
return mempool->free(p,size); return mempool->free(p, size);
} }
} // namespace predictor } // namespace predictor
......
...@@ -24,7 +24,7 @@ namespace fugue { ...@@ -24,7 +24,7 @@ namespace fugue {
namespace memory { namespace memory {
void Region::init() { void Region::init() {
_big_mem_capacity = 64 * 1024 * 1024;//64MB _big_mem_capacity = 64 * 1024 * 1024; // 64MB
_big_mem_start = new char[_big_mem_capacity]; _big_mem_start = new char[_big_mem_capacity];
} }
......
...@@ -341,8 +341,9 @@ class Region { ...@@ -341,8 +341,9 @@ class Region {
2 * 1024 * 2 * 1024 *
1024; // 2MB,means when you need less than 2M, get memory from Block. 1024; // 2MB,means when you need less than 2M, get memory from Block.
// 64MB,means when you need less than 64MB, get memory from BigMemory instead of BigNode // 64MB,means when you need less than 64MB, get memory from BigMemory instead
static const int BIGNODE_MEM_THRESHOLD = (64 * 1024 * 1024 + 1); // of BigNode
static const int BIGNODE_MEM_THRESHOLD = (64 * 1024 * 1024 + 1);
static const int COUNTER_SIZE = static const int COUNTER_SIZE =
BIGNODE_MEM_THRESHOLD / BIG_MEM_THRESHOLD + 1; // this is not used BIGNODE_MEM_THRESHOLD / BIG_MEM_THRESHOLD + 1; // this is not used
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册