diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-01-18 22:07:10 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-01-18 22:13:38 +0300 |
commit | e1fcd10b48775a92b3fe7b13d2c702fab48dfff8 (patch) | |
tree | a290e41caeb475f052d9793851adb08a852fc4da | |
parent | 7e332208a0987fd91bf1afc8fa7a5647b53a5670 (diff) |
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>
-rw-r--r-- | winsup/cygwin/mm/shared.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/mm/shared.cc b/winsup/cygwin/mm/shared.cc index e68b506a9..40cdd4722 100644 --- a/winsup/cygwin/mm/shared.cc +++ b/winsup/cygwin/mm/shared.cc @@ -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 |