-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CVS-154697, Windows implementation for malloc_trim(0) #2854
base: main
Are you sure you want to change the base?
Conversation
…kd_model_server into win_ovms_cvs154700
…kd_model_server into win_ovms_cvs154697
bool malloc_trim_win() { | ||
HANDLE heap = GetProcessHeap(); | ||
if (heap == NULL) { | ||
std::cerr << "Failed to get process heap" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use: SPDLOG_TRACE, SPDLOG_ERROR
return false; | ||
} | ||
} | ||
std::cout << "HeapCompact freed " << freed_bytes << " bytes" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SPDLOG_INFO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable unit tests: ModelManagerCleanerThread
🛠 Summary
Windows implementation for malloc_trim(0);
Jira/Issue: CVS-154697
🧪 Checklist
``