| 222 | } |
| 223 | |
| 224 | void os_free(void* ptr, size_t bytes, bool hugepages) |
| 225 | { |
| 226 | if (bytes == 0) |
| 227 | return; |
| 228 | |
| 229 | if (!VirtualFree(ptr,0,MEM_RELEASE)) |
| 230 | throw std::bad_alloc(); |
| 231 | } |
| 232 | |
| 233 | void os_advise(void *ptr, size_t bytes) |
| 234 | { |
no outgoing calls
no test coverage detected