From 9071de6fdc9d39e5443d1982cf7689f5d2fc9d45 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 8 Feb 1999 02:51:30 +0000 Subject: Copy all elements of the allocations[] array, including the last. (Pointed Sun Feb 7 21:56:00 1999 Owen Taylor * gmem.c (g_mem_profile): Copy all elements of the allocations[] array, including the last. (Pointed out by "Matthew W. Samsonoff" ) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gmem.c | 2 +- gmem.c | 2 +- 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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 + + * gmem.c (g_mem_profile): Copy all elements + of the allocations[] array, including the last. + (Pointed out by "Matthew W. Samsonoff" ) + 1999-02-05 Sebastian Wilhelmi * 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; -- cgit v1.2.3