mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
malloc: Revert sense of prev_inuse in comments
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2018-03-09 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
|
||||||
|
in comment.
|
||||||
|
|
||||||
2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
|
2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
|
||||||
|
|
||||||
[BZ #22919]
|
[BZ #22919]
|
||||||
|
@@ -1287,13 +1287,13 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|||||||
/* Ptr to next physical malloc_chunk. */
|
/* Ptr to next physical malloc_chunk. */
|
||||||
#define next_chunk(p) ((mchunkptr) (((char *) (p)) + chunksize (p)))
|
#define next_chunk(p) ((mchunkptr) (((char *) (p)) + chunksize (p)))
|
||||||
|
|
||||||
/* Size of the chunk below P. Only valid if prev_inuse (P). */
|
/* Size of the chunk below P. Only valid if !prev_inuse (P). */
|
||||||
#define prev_size(p) ((p)->mchunk_prev_size)
|
#define prev_size(p) ((p)->mchunk_prev_size)
|
||||||
|
|
||||||
/* Set the size of the chunk below P. Only valid if prev_inuse (P). */
|
/* Set the size of the chunk below P. Only valid if !prev_inuse (P). */
|
||||||
#define set_prev_size(p, sz) ((p)->mchunk_prev_size = (sz))
|
#define set_prev_size(p, sz) ((p)->mchunk_prev_size = (sz))
|
||||||
|
|
||||||
/* Ptr to previous physical malloc_chunk. Only valid if prev_inuse (P). */
|
/* Ptr to previous physical malloc_chunk. Only valid if !prev_inuse (P). */
|
||||||
#define prev_chunk(p) ((mchunkptr) (((char *) (p)) - prev_size (p)))
|
#define prev_chunk(p) ((mchunkptr) (((char *) (p)) - prev_size (p)))
|
||||||
|
|
||||||
/* Treat space at ptr + offset as a chunk */
|
/* Treat space at ptr + offset as a chunk */
|
||||||
|
Reference in New Issue
Block a user