summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-02-08 02:51:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-02-08 02:51:30 +0000
commit9071de6fdc9d39e5443d1982cf7689f5d2fc9d45 (patch)
tree2ba4851c1d77d4c9febc0125242f20725a8c7f92
parent28500009d46c3737af3a2e3480e38a5c7561db6b (diff)
downloadglib-9071de6fdc9d39e5443d1982cf7689f5d2fc9d45.tar.gz
Copy all elements of the allocations[] array, including the last. (Pointed
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>)
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-126
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--glib/gmem.c2
-rw-r--r--gmem.c2
10 files changed, 50 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 938def212..860f80a88 100644
--- 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
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-12
+++ b/ChangeLog.pre-2-12
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 938def212..860f80a88 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/glib/gmem.c b/glib/gmem.c
index 697e9df81..e7e215dfd 100644
--- a/glib/gmem.c
+++ b/glib/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;
diff --git a/gmem.c b/gmem.c
index 697e9df81..e7e215dfd 100644
--- 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;