icecat: add release icecat-140.8.0-2 for aramo
This commit is contained in:
parent
d9a6c0aa96
commit
d570f39e11
616 changed files with 39955 additions and 33937 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue