diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-10-02 04:19:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-10-02 04:19:37 +0000 |
commit | 68f3802dfaf1d38cc51b64241afc36cf38e27c5e (patch) | |
tree | 98c4e660f76b4982bcbfd6c357f111679fbf1d24 /malloc | |
parent | c8caf0895854e69ea8200c52687c2ac95b8ec8d7 (diff) | |
download | glibc-68f3802dfaf1d38cc51b64241afc36cf38e27c5e.tar glibc-68f3802dfaf1d38cc51b64241afc36cf38e27c5e.tar.gz glibc-68f3802dfaf1d38cc51b64241afc36cf38e27c5e.tar.bz2 glibc-68f3802dfaf1d38cc51b64241afc36cf38e27c5e.zip |
[BZ #4941]
* locales/oc_FR: Fix Thursday abday and August mon and abmon data.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 0755fd8f8d..39d5b3fa52 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -3503,6 +3503,10 @@ mremap_chunk(p, new_size) mchunkptr p; size_t new_size; /* Note the extra SIZE_SZ overhead as in mmap_chunk(). */ new_size = (new_size + offset + SIZE_SZ + page_mask) & ~page_mask; + /* No need to remap if the number of pages does not change. */ + if (size + offset == new_size) + return p; + cp = (char *)mremap((char *)p - offset, size + offset, new_size, MREMAP_MAYMOVE); |