]> sourceware.org Git - newlib-cygwin.git/commitdiff
2010-05-31 Kazu Hirata <kazu@codesourcery.com>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 31 May 2010 19:15:41 +0000 (19:15 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 31 May 2010 19:15:41 +0000 (19:15 +0000)
        * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
        difference between versions 2.6.4 and 2.6.5.

newlib/ChangeLog
newlib/libc/stdlib/mallocr.c

index 2198789eac1abbd8999ca6b36bd5086dedc2e8c1..30140b5325f6849a9e49c56b3483c598cab5dc46 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-31  Kazu Hirata  <kazu@codesourcery.com>
+
+       * libc/stdlib/mallocr.c (malloc_extend_top): Backport the
+       difference between versions 2.6.4 and 2.6.5.
+
 2010-05-18  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * libc/string/strsignal.c (strsignal): Avoid duplicate case statement
index 9588ffd8308a662d2fca08a5d52f60712429f16f..ecc445f3d36365a4840e31c737db5018ddba42e9 100644 (file)
@@ -8,12 +8,17 @@ int _dummy_mallocr = 1;
   public domain.  Send questions/comments/complaints/performance data
   to dl@cs.oswego.edu
 
-* VERSION 2.6.4  Thu Nov 28 07:54:55 1996  Doug Lea  (dl at gee)
+* VERSION 2.6.5  Wed Jun 17 15:55:16 1998  Doug Lea  (dl at gee)
   
    Note: There may be an updated version of this malloc obtainable at
            ftp://g.oswego.edu/pub/misc/malloc.c
          Check before installing!
 
+   Note: This version differs from 2.6.4 only by correcting a
+         statement ordering error that could cause failures only
+         when calls to this malloc are interposed with calls to
+         other memory allocators.
+
 * Why use this malloc?
 
   This is not the fastest, most space-conserving, most portable, or
@@ -2223,11 +2228,11 @@ static void malloc_extend_top(RARG nb) RDECL INTERNAL_SIZE_T nb;
 
       /* Also keep size a multiple of MALLOC_ALIGNMENT */
       old_top_size = (old_top_size - 3*SIZE_SZ) & ~MALLOC_ALIGN_MASK;
+      set_head_size(old_top, old_top_size);
       chunk_at_offset(old_top, old_top_size          )->size =
         SIZE_SZ|PREV_INUSE;
       chunk_at_offset(old_top, old_top_size + SIZE_SZ)->size =
         SIZE_SZ|PREV_INUSE;
-      set_head_size(old_top, old_top_size);
       /* If possible, release the rest. */
       if (old_top_size >= MINSIZE) 
         fREe(RCALL chunk2mem(old_top));
@@ -3606,6 +3611,9 @@ int mALLOPt(RARG param_number, value) RDECL int param_number; int value;
 
 History:
 
+    V2.6.5 Wed Jun 17 15:57:31 1998  Doug Lea  (dl at gee)
+      * Fixed ordering problem with boundary-stamping
+
     V2.6.3 Sun May 19 08:17:58 1996  Doug Lea  (dl at gee)
       * Added pvalloc, as recommended by H.J. Liu
       * Added 64bit pointer support mainly from Wolfram Gloger
This page took 0.055175 seconds and 5 git commands to generate.