Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Mantione <massi@mono-cvs.ximian.com>2008-12-31 14:58:54 +0300
committerMassimiliano Mantione <massi@mono-cvs.ximian.com>2008-12-31 14:58:54 +0300
commitf85e0a5f3d545797d30ad33a89ff12370d826042 (patch)
tree0df33b02abe109bf4dc5482152823a63c6b4e5e9 /Mono.Profiler/profiler-decoder-library
parent26e958b47a787bdb9c7d06cc7218311306fc81ab (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/ChangeLog3
-rw-r--r--Mono.Profiler/profiler-decoder-library/ObjectModel.cs2
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;