| 129 | } |
| 130 | |
| 131 | int Stack::initialize(RunnableThread& runnableThread) |
| 132 | { |
| 133 | std::fill_n(static_cast<std::decay<decltype(stackSentinel)>::type*>(adjustedStorage_), |
| 134 | adjustedSize_ / sizeof(stackSentinel), stackSentinel); |
| 135 | int ret; |
| 136 | std::tie(ret, stackPointer_) = |
| 137 | architecture::initializeStack(static_cast<uint8_t*>(adjustedStorage_) + stackGuardSize, getSize(), |
| 138 | runnableThread); |
| 139 | return ret; |
| 140 | } |
| 141 | |
| 142 | } // namespace internal |
| 143 |
no test coverage detected