Dispatcher: Use std::vector as the underlying container for std::stack

By default std::stack uses the heavyweight std::deque container for storage,
but std::vector is perfectly suitable for our purposes and it has better
performance characteristics.
This commit is contained in:
Tony Wasserka committed 2021-11-18 19:15:11 +01:00
1 parent d47182b631
commit 730ba42cf3
1 file changed
+1 -1
@@ -80,7 +80,7 @@ protected:
ArchHelpers::Context::ContextBackup* StoreThreadState(int Signal, void *ucontext);
void RestoreThreadState(void *ucontext);
std::stack<uint64_t> SignalFrames;
std::stack<uint64_t, std::vector<uint64_t>> SignalFrames;
bool SRAEnabled = false;
virtual void SpillSRA(void *ucontext, uint32_t IgnoreMask) {}