| 133 | |
| 134 | template <bool IsNoExcept> |
| 135 | JEMALLOC_ALWAYS_INLINE |
| 136 | void * |
| 137 | alignedNewImpl(std::size_t size, std::align_val_t alignment) noexcept(IsNoExcept) { |
| 138 | void *ptr = je_aligned_alloc(static_cast<std::size_t>(alignment), size); |
| 139 | if (likely(ptr != nullptr)) { |
| 140 | return ptr; |
| 141 | } |
| 142 | |
| 143 | return handleOOM(size, IsNoExcept); |
| 144 | } |
| 145 | |
| 146 | void * |
| 147 | operator new(std::size_t size, std::align_val_t alignment) { |
nothing calls this directly
no test coverage detected