﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
345	sbrk() and high-memory	KO Myung-Hun		"Hi/2.

sbrk() seems not to support high-memory, maybe brk(), too. For example,

{{{
#include <stdio.h>
#include <stdlib.h>

int main( void )
{
    printf(""Before, sbrk(0) = %p\n"", sbrk( 0 ));
    printf(""malloc() = %p\n"", malloc( 1024 * 1024 * 128UL ));
    printf(""After, sbrk(0) = %p\n"", sbrk( 0 ));

    return 0;
}
}}}

Without -Zhigh-mem,

{{{
Before, sbrk(0) = 0x2180000
malloc() = 0x42d0040
After, sbrk(0) = 0xc2e0000
}}}

With -Zhigh-mem,

{{{
Before, sbrk(0) = 0x2180000
malloc() = 0x21030040
After, sbrk(0) = 0x2180000
}}}

In case of -Zhigh-mem, sbrk() is not affected by malloc()."	defect	new	normal	libc-0.7	libc	0.6.6	normal			
