Remove malloc_trim
Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D876
This commit is contained in:
parent
c6a13ae5f6
commit
e11216f058
@ -65,12 +65,6 @@ class DeferredDeleter {
|
||||
++it;
|
||||
}
|
||||
objects_.erase(objects_.begin(), it);
|
||||
// After deleting objects - to force release of now deleted (free) memory
|
||||
// back to OS we need to call malloc_trim. This will force memgraph to
|
||||
// return memory from top of the heap to OS. If we don't use this, it seems
|
||||
// to the outside observer we are leaking memory while in fact we are not,
|
||||
// we were just keeping it close by in case we need it in near future.
|
||||
malloc_trim(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user