From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 88CBC3858410; Wed, 18 Jan 2023 19:35:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88CBC3858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674070520; bh=KnaeWpCxMhfMz+suULuvhaSQD2Q/gH8b8zL/nHLNHXw=; h=From:To:Subject:Date:From; b=lJ1kBb6F3tnv+wX9d5TB86v8cw0YpWySysYerYZAF2wjzfohxhlPM3jvxTvaXlSbE sX+UOwNEVCDDliVNGE6TUTe9kjlvJo9Dk+qHD/+RToiO+5RiFqfGp5htAsWM/aD7e2 29mhYz3AEiY9T/9PymWevveb0To8hy6mWh+AEpLw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: memory_init: initialize user heap here X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 7e332208a0987fd91bf1afc8fa7a5647b53a5670 X-Git-Newrev: e1fcd10b48775a92b3fe7b13d2c702fab48dfff8 Message-Id: <20230118193520.88CBC3858410@sourceware.org> Date: Wed, 18 Jan 2023 19:35:20 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3De1fcd10b487= 75a92b3fe7b13d2c702fab48dfff8 commit e1fcd10b48775a92b3fe7b13d2c702fab48dfff8 Author: Corinna Vinschen AuthorDate: Wed Jan 18 20:07:10 2023 +0100 Commit: Corinna Vinschen CommitDate: Wed Jan 18 20:13:38 2023 +0100 Cygwin: memory_init: initialize user heap here =20 Eventually move user heap initialization to memory_init. The call order is not changed. Drop a now useless comment. =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/mm/shared.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winsup/cygwin/mm/shared.cc b/winsup/cygwin/mm/shared.cc index e68b506a9fff..40cdd472286e 100644 --- a/winsup/cygwin/mm/shared.cc +++ b/winsup/cygwin/mm/shared.cc @@ -319,14 +319,13 @@ shared_info::initialize () else if (cb !=3D 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 (); } =20 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