From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m15-112.126.com ([220.181.15.112]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hIPOn-00075U-CW for barebox@lists.infradead.org; Mon, 22 Apr 2019 03:13:44 +0000 From: =?UTF-8?B?5byg5b+g5bGx?= Message-ID: Date: Mon, 22 Apr 2019 11:13:30 +0800 MIME-Version: 1.0 Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Why sbrk clear the increased memory region To: barebox@lists.infradead.org UmVjZW50bHksIEknbSB1c2luZyBiYXJlYm94IGluIGEgZGVlcCBlbWJlZGRlZCBwcm9qZWN0LCBh bmQgbmVlZCBzb21lIGZ1bnRjdGlvbnMKaW4gbGliYy9saWJtLCBTbyBJIGxpbmtlZCBiYXJlYm94 IHdpdGggbmV3bGliCgpCdXQgd2hlbmV2ZXIgbmV3bGliIGNhbGwgc2JyayB3aXRoIG5lZ3RpdmUg YGluY3JlbWVudGAsIGJhcmVib3ggY3Jhc2guCgpUaGUgcmVhc29uIGlzIHNicmsgY2xlYW4gbWVt b3J5IHJlZ2lvbiB1c2luZyBgaW5jcmVtZW50YC4KCldoeSBzYnJrIG11c3QgY2xlYXIgdGhlIGlu Y3JlYXNlZCBtZW1vcnkgcmVnaW9uPyAKCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t ODwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSAKRnJvbSBkYmFhNjU4YjYwZmU0MTNlMWQx ODE4YWZhZDEzYTUzZTdhZDAwMGNlIE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VU Ri04P3E/PUU1PUJDPUEwPUU1PUJGPUEwPUU1PUIxPUIxPz0gP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