malloc_trim does not seem to exist on FreeBSD
This commit is contained in:
@@ -2516,7 +2516,7 @@ void CWallet::DeleteTransactions(std::vector<uint256> &removeTxs) {
|
||||
}
|
||||
}
|
||||
//TODO: the build system should check for malloc_trim support
|
||||
#if defined(__unix__)
|
||||
#if defined(__linux__)
|
||||
malloc_trim(0);
|
||||
#else
|
||||
// On Mac and Win memory isn't kept back upon vector or list member erase, different garbage collector strategy. No need to force trimming.
|
||||
|
||||
Reference in New Issue
Block a user