icecat: add release icecat-140.8.0-2 for aramo

This commit is contained in:
Ark74 2026-03-11 06:58:43 -06:00
parent d9a6c0aa96
commit d570f39e11
616 changed files with 39955 additions and 33937 deletions

View file

@ -74,11 +74,17 @@ size_t CombinedStacks::AddStack(const Telemetry::ProcessedStack& aStack) {
}
void CombinedStacks::AddStacks(const CombinedStacks& aStacks) {
if (mMaxStacksCount == 0) {
return;
}
mStacks.resize(
std::min(mStacks.size() + aStacks.GetStackCount(), mMaxStacksCount));
for (const auto& stack : aStacks.mStacks) {
size_t index = mNextIndex;
if (index >= mStacks.size()) {
break;
}
// Advance the indices of the circular queue holding the stacks.
mNextIndex = (mNextIndex + 1) % mMaxStacksCount;