| 26 | : device(device), hugepages(false) {} |
| 27 | |
| 28 | __forceinline pointer allocate( size_type n ) |
| 29 | { |
| 30 | if (n) { |
| 31 | assert(device); |
| 32 | device->memoryMonitor(n*sizeof(T),false); |
| 33 | } |
| 34 | if (n*sizeof(value_type) >= 14 * PAGE_SIZE_2M) |
| 35 | { |
| 36 | pointer p = (pointer) os_malloc(n*sizeof(value_type),hugepages); |
| 37 | assert(p); |
| 38 | return p; |
| 39 | } |
| 40 | return (pointer) alignedMalloc(n*sizeof(value_type),alignment); |
| 41 | } |
| 42 | |
| 43 | __forceinline void deallocate( pointer p, size_type n ) |
| 44 | { |
nothing calls this directly
no test coverage detected