diff options
author | Richard Linden <none@none> | 2013-10-18 13:10:40 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-10-18 13:10:40 -0700 |
commit | 99e29b83401a1d6da9dbca03a64c0bfd7bad6298 (patch) | |
tree | dd408ef3239e32e5182951881d6adbe449a252b2 | |
parent | 8b93238b42fdd8b2b6d9b944d4ebb3099f119904 (diff) |
crash fix - bad handling of instancetracker iterators
-rwxr-xr-x | indra/llcommon/llfasttimer.cpp | 2 | ||||
-rwxr-xr-x | indra/llcommon/llinstancetracker.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/indra/llcommon/llfasttimer.cpp b/indra/llcommon/llfasttimer.cpp index d97fa74c24..4744be7236 100755 --- a/indra/llcommon/llfasttimer.cpp +++ b/indra/llcommon/llfasttimer.cpp @@ -193,7 +193,7 @@ TimeBlockTreeNode& BlockTimerStatHandle::getTreeNode() const void BlockTimerStatHandle::bootstrapTimerTree() { - for (BlockTimerStatHandle::instance_tracker_t::instance_iter begin_it = BlockTimerStatHandle::instance_tracker_t::beginInstances(), end_it = BlockTimerStatHandle::instance_tracker_t::endInstances(), it = begin_it; + for (BlockTimerStatHandle::instance_tracker_t::instance_iter it = BlockTimerStatHandle::instance_tracker_t::beginInstances(), end_it = BlockTimerStatHandle::instance_tracker_t::endInstances(); it != end_it; ++it) { diff --git a/indra/llcommon/llinstancetracker.cpp b/indra/llcommon/llinstancetracker.cpp index 7ff8324fe3..11fc53f8c8 100755 --- a/indra/llcommon/llinstancetracker.cpp +++ b/indra/llcommon/llinstancetracker.cpp @@ -41,6 +41,7 @@ void LLInstanceTrackerBase::StaticBase::incrementDepth() void LLInstanceTrackerBase::StaticBase::decrementDepth() { + llassert(sIterationNestDepth); apr_atomic_dec32(&sIterationNestDepth); } |