Copy all elements of the allocations[] array, including the last. (Pointed
authorOwen Taylor <otaylor@redhat.com>
Mon, 8 Feb 1999 02:51:30 +0000 (02:51 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 8 Feb 1999 02:51:30 +0000 (02:51 +0000)
Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>

* gmem.c (g_mem_profile): Copy all elements
of the allocations[] array, including the last.
(Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmem.c
gmem.c

index 938def2..860f80a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 938def2..860f80a 100644 (file)
@@ -1,3 +1,9 @@
+Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>
+
+       * gmem.c (g_mem_profile): Copy all elements
+       of the allocations[] array, including the last.
+       (Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
+       
 1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in: Make the error message in case of a broken thread
index 697e9df..e7e215d 100644 (file)
@@ -409,7 +409,7 @@ g_mem_profile (void)
   gulong local_freed_mem;  
 
   g_mutex_lock (mem_profile_lock);
-  for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
+  for (i = 0; i < MEM_PROFILE_TABLE_SIZE; i++)
     local_allocations[i] = allocations[i];
   local_allocated_mem = allocated_mem;
   local_freed_mem = freed_mem;
diff --git a/gmem.c b/gmem.c
index 697e9df..e7e215d 100644 (file)
--- a/gmem.c
+++ b/gmem.c
@@ -409,7 +409,7 @@ g_mem_profile (void)
   gulong local_freed_mem;  
 
   g_mutex_lock (mem_profile_lock);
-  for (i = 0; i < (MEM_PROFILE_TABLE_SIZE - 1); i++)
+  for (i = 0; i < MEM_PROFILE_TABLE_SIZE; i++)
     local_allocations[i] = allocations[i];
   local_allocated_mem = allocated_mem;
   local_freed_mem = freed_mem;