diff options
author | Massimiliano Mantione <massi@mono-cvs.ximian.com> | 2008-12-31 14:58:54 +0300 |
---|---|---|
committer | Massimiliano Mantione <massi@mono-cvs.ximian.com> | 2008-12-31 14:58:54 +0300 |
commit | f85e0a5f3d545797d30ad33a89ff12370d826042 (patch) | |
tree | 0df33b02abe109bf4dc5482152823a63c6b4e5e9 /Mono.Profiler/profiler-decoder-library | |
parent | 26e958b47a787bdb9c7d06cc7218311306fc81ab (diff) |
ObjectModel.cs: fixed call stack array resize condition.
svn path=/trunk/mono-tools/; revision=122293
Diffstat (limited to 'Mono.Profiler/profiler-decoder-library')
-rw-r--r-- | Mono.Profiler/profiler-decoder-library/ChangeLog | 3 | ||||
-rw-r--r-- | Mono.Profiler/profiler-decoder-library/ObjectModel.cs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Mono.Profiler/profiler-decoder-library/ChangeLog b/Mono.Profiler/profiler-decoder-library/ChangeLog index 2c41120e..4c0315ee 100644 --- a/Mono.Profiler/profiler-decoder-library/ChangeLog +++ b/Mono.Profiler/profiler-decoder-library/ChangeLog @@ -1,3 +1,6 @@ +2008-12-29 Massimiliano Mantione <massi@ximian.com> + * ObjectModel.cs: fixed call stack array resize condition. + 2008-12-01 Massimiliano Mantione <massi@ximian.com> * ObjectModel.cs: - Added interface IHeapItemSetStatisticsSubject to represents criteria diff --git a/Mono.Profiler/profiler-decoder-library/ObjectModel.cs b/Mono.Profiler/profiler-decoder-library/ObjectModel.cs index 937ecc99..77fd585f 100644 --- a/Mono.Profiler/profiler-decoder-library/ObjectModel.cs +++ b/Mono.Profiler/profiler-decoder-library/ObjectModel.cs @@ -333,7 +333,7 @@ namespace Mono.Profiler { return null; } - if (frame.Level> (uint) tracesByLevel.Length) { + if (frame.Level >= (uint) tracesByLevel.Length) { Dictionary<uint,List<StackTrace>> [] newTracesByLevel = new Dictionary<uint,List<StackTrace>> [frame.Level * 2]; Array.Copy (tracesByLevel, newTracesByLevel, tracesByLevel.Length); tracesByLevel = newTracesByLevel; |