mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Bug 1009603 - Tracelogger: Part 5: Handle stack mismatch gracefully (for release builds), r=bbouvier
This commit is contained in:
parent
50481d7d67
commit
10709ebddb
@ -328,7 +328,7 @@ TraceLogger::~TraceLogger()
|
||||
// We temporary enable logging for this. Stop doesn't need any extra data,
|
||||
// so is safe to do, even when we encountered OOM.
|
||||
enabled = true;
|
||||
while (stack.size() > 0)
|
||||
while (stack.currentId() > 0)
|
||||
stopEvent();
|
||||
enabled = false;
|
||||
}
|
||||
@ -707,6 +707,7 @@ TraceLogger::stopEvent()
|
||||
return;
|
||||
}
|
||||
}
|
||||
JS_ASSERT(stack.currentId() > 0);
|
||||
stack.pop();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user