mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Cygwin: memory_init: initialize user heap here
Eventually move user heap initialization to memory_init. The call order is not changed. Drop a now useless comment. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7e332208a0
commit
e1fcd10b48
@ -319,14 +319,13 @@ shared_info::initialize ()
|
||||
else if (cb != sizeof (*this))
|
||||
system_printf ("size of shared memory region changed from %lu to %u",
|
||||
sizeof (*this), cb);
|
||||
/* FIXME? Shouldn't this be in memory_init? */
|
||||
cygheap->user_heap.init ();
|
||||
}
|
||||
|
||||
void
|
||||
memory_init ()
|
||||
{
|
||||
shared_info::create (); /* Initialize global shared memory */
|
||||
cygheap->user_heap.init (); /* Initialize user heap */
|
||||
user_info::create (false); /* Initialize per-user shared memory */
|
||||
/* Initialize tty list session stuff. Doesn't really belong here but
|
||||
this needs to be initialized before any tty or console manipulation
|
||||
|
Loading…
x
Reference in New Issue
Block a user