* @brief Set the next stacklet in the chain to 'new_next'. * * This requires that this is the top stacklet. If there is a cached stacklet ahead of the top stacklet * then it will be freed before being replaced with 'new_next'. */
| 126 | * then it will be freed before being replaced with 'new_next'. |
| 127 | */ |
| 128 | void set_next(stacklet *new_next) noexcept { |
| 129 | LF_ASSERT(is_top()); |
| 130 | std::free(std::exchange(m_next, new_next)); // NOLINT |
| 131 | } |
| 132 | /** |
| 133 | * @brief Allocate a new stacklet with a stack of size of at least`size` and attach it to the given |
| 134 | * stacklet chain. |
no outgoing calls
no test coverage detected