This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Bug 15321 - malloc/free can't give the memory back to kernel when main_arena is discontinous
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <He dot Hongjun at zte dot com dot cn>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 29 Nov 2018 17:24:01 +0000
- Subject: Re: Bug 15321 - malloc/free can't give the memory back to kernel when main_arena is discontinous
- References: 201811281706560749906@zte.com.cn <201811291709563275705@zte.com.cn>
On Thu, 29 Nov 2018, He.Hongjun@zte.com.cn wrote:
> Hello, I have fixed the Bug 15321.
> patch on glibc-2.28
Do you have an FSF copyright assignment? (Are you covered by the one for
"Chengdu Zhongxing Software Company Limited (ZTE)" dated 23 August 2018?)
> diff --git a/malloc/tst-discontinuous-main-arena.c b/malloc/tst-discontinuous-main-arena.c
> old mode 100644
> new mode 100755
> index e69de29..3f6f0e7
> --- a/malloc/tst-discontinuous-main-arena.c
> +++ b/malloc/tst-discontinuous-main-arena.c
> @@ -0,0 +1,128 @@
> +/* Ensure that main arena of discontinuity can normal free memory.
> +
> + The GNU C Library is free software; you can redistribute it and/or
Missing copyright notice, before the license notice.
> +#define TEST_FUNCTION do_test ()
> +#include "../test-skeleton.c"
New tests should use <support/test-driver.c>, not the old-style
test-skeleton.c.
--
Joseph S. Myers
joseph@codesourcery.com