| 353 | namespace { |
| 354 | |
| 355 | bool available_memory_bytes(uint64_t& bytes, uint64_t* commit = nullptr) { |
| 356 | detail::HostMemory m; |
| 357 | if (!detail::host_available_memory(m)) return false; |
| 358 | bytes = m.available; |
| 359 | if (commit != nullptr) *commit = m.commit; |
| 360 | return bytes > 0; |
| 361 | } |
| 362 | |
| 363 | void log_complement_memory(const char* stage, uint64_t requested) { |
| 364 | #if defined(_WIN32) |
no test coverage detected