| 41 | } |
| 42 | |
| 43 | __forceinline void deallocate( pointer p, size_type n ) |
| 44 | { |
| 45 | if (p) |
| 46 | { |
| 47 | if (n*sizeof(value_type) >= 14 * PAGE_SIZE_2M) |
| 48 | os_free(p,n*sizeof(value_type),hugepages); |
| 49 | else |
| 50 | alignedFree(p); |
| 51 | } |
| 52 | else assert(n == 0); |
| 53 | |
| 54 | if (n) { |
| 55 | assert(device); |
| 56 | device->memoryMonitor(-ssize_t(n)*sizeof(T),true); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | __forceinline void construct( pointer p, const_reference val ) { |
| 61 | new (p) T(val); |
nothing calls this directly
no test coverage detected