From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78D9B3858C60; Wed, 29 Sep 2021 20:46:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78D9B3858C60 From: "dje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102519] [12 Regression] VRP Jump threader memory explosion Date: Wed, 29 Sep 2021 20:46:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Sep 2021 20:46:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102519 --- Comment #15 from David Edelsohn --- I annotated execute_vrp_threader() to call getrusage() and print the size of RSS around each call to threader.thread_jumps(). It consistently is growin= g, but not in the threader itself. Was the former VPR Threader intentionally = or implicitly freeing some other data allocated by the compiler that the new threader is not cleaning up? Assembling functions: f_0_0_0 RSS =3D 569788 RSS =3D 569788 RSS =3D 569792 RSS =3D 569792 g_0_0_0 RSS =3D 569876 RSS =3D 569876 RSS =3D 569880 RSS =3D 569880 f_0_0_1 RSS =3D 569880 RSS =3D 569880 RSS =3D 569884 RSS =3D 569884 ... g_17_15_17 RSS =3D 783824 RSS =3D 783824 RSS =3D 783836 RSS =3D 783836 f_17_15_23 RSS =3D 783892 RSS =3D 783892 RSS =3D 783896 RSS =3D 783896 cc1: out of memory allocating 65536 bytes after a total of 1071909664 bytes=