mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
Bug 1223767 - "TraceLogger: Assertion failure: i < size_, at js/src/vm/TraceLoggingTypes.h:210". r=hv1989
This commit is contained in:
parent
32ca398d6c
commit
04ed85f1fc
@ -276,7 +276,7 @@ TraceLoggerGraph::flush()
|
||||
if (bytesWritten < tree.size())
|
||||
return false;
|
||||
|
||||
treeOffset += tree.lastEntryId();
|
||||
treeOffset += tree.size();
|
||||
tree.clear();
|
||||
}
|
||||
|
||||
@ -359,7 +359,7 @@ TraceLoggerGraph::startEventInternal(uint32_t id, uint64_t timestamp)
|
||||
|
||||
if (parent.lastChildId() == 0) {
|
||||
MOZ_ASSERT(!entry.hasChildren());
|
||||
MOZ_ASSERT(parent.treeId() == tree.lastEntryId() + treeOffset);
|
||||
MOZ_ASSERT(parent.treeId() == treeOffset + tree.size() - 1);
|
||||
|
||||
if (!updateHasChildren(parent.treeId()))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user