MCPcopy Create free account
hub / github.com/avast/retdec / limitSystemMemoryToHalfOfTotalSystemMemory

Function limitSystemMemoryToHalfOfTotalSystemMemory

src/utils/memory.cpp:228–235  ·  view source on GitHub ↗

* @brief Limits system memory to half of the total memory. */

Source from the content-addressed store, hash-verified

226* @brief Limits system memory to half of the total memory.
227*/
228bool limitSystemMemoryToHalfOfTotalSystemMemory() {
229 auto totalSize = getTotalSystemMemory();
230 if (totalSize == 0) {
231 return false;
232 }
233
234 return limitSystemMemory(totalSize / 2);
235}
236
237} // namespace utils
238} // namespace retdec

Callers 4

processArgsFunction · 0.85
TEST_FFunction · 0.85

Calls 2

getTotalSystemMemoryFunction · 0.85
limitSystemMemoryFunction · 0.85

Tested by 1

TEST_FFunction · 0.68