From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by sourceware.org (Postfix) with ESMTPS id D55C63858D28 for ; Fri, 17 Dec 2021 15:11:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D55C63858D28 Received: by mail-yb1-xb2c.google.com with SMTP id e136so7328371ybc.4 for ; Fri, 17 Dec 2021 07:11:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uWDn9xbuNNqcovjArqHq5+moZGYZ5fMWOYANlKsbQ5E=; b=ioU3xoWZDwnbotrHwJ70XcE7FyWZa0kUiX0Ozm9+rK0h88Piqq3fS++fP/0uuw5iqf 1uto5ddPpJRMbx6wXC2cLtdCSwMI3uDSgOq2EUFSlez18ZHmukdNyG4P5JcJh4UeAsA9 BapzSRvz5Lm5q3x0QKbd/T6ig71Ir9FpEua6aY7UfVYJJkd4VnQlg6yUG5g04EZ08y8K EY2aY84UsfjEIfaiU0UEdKr8dUdLqzz0rUWs88WxsuSsT3fKVTkL2DuWWo98Jp/kkkb2 KxPA0HCxkYxJvXa6XutP3nwCOngNHBQHv3fzQuegWs46y2DYbi28Z390QrCkgRK7ZDb+ DSbA== X-Gm-Message-State: AOAM530eD8KcGqmBgEoxMeuTdtQ1XV3zsZE6z30aP0epX46+fFRa/51F OdgaJ4CMPExktYSaWoUWAnHM6R3ZnjfTtwxz7z0= X-Google-Smtp-Source: ABdhPJwzvDr4ZuNmWpEdke9Nx98gl8MgqEXI357LsRyVIwFFh7KMoyTC599qqNU7XHkvRYCOkGfqVhYTtrrUUm0+xS0= X-Received: by 2002:a25:660d:: with SMTP id a13mr4845709ybc.460.1639753877327; Fri, 17 Dec 2021 07:11:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Fri, 17 Dec 2021 16:11:06 +0100 Message-ID: Subject: Re: Memory leaks (detected by Valgrind) To: Andrea Corallo Cc: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen_via_Jit?= , Alex Coplan , =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= , Mark Wielaard X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2021 15:11:19 -0000 Am Fr., 17. Dez. 2021 um 15:54 Uhr schrieb Andrea Corallo < andrea.corallo@arm.com>: > Marc Nieper-Wi=C3=9Fkirchen via Jit writes: > > > Am Fr., 17. Dez. 2021 um 11:52 Uhr schrieb Alex Coplan < > Alex.Coplan@arm.com > >>: > > > >> Hi, > >> > >> > -----Original Message----- > >> > From: Jit On Behalf = Of > >> Marc > >> > Nieper-Wi=C3=9Fkirchen via Jit > >> > Sent: 17 December 2021 10:29 > >> > To: Mark Wielaard > >> > Cc: Marc Nieper-Wi=C3=9Fkirchen ; > jit@gcc.gnu.org > >> > Subject: Re: Memory leaks (detected by Valgrind) > >> > > >> > Thanks! > >> > > >> > With `--enable-valgrind-annotations`, the "uses of uninitialized > values" > >> > have gone away, but a lot of small leaks are still present: > >> > >> Memory leaks with libgccjit are a known issue, see > >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63854 > > > > > > Oh, that the bug has been open so long and is still open is unfortunate > as > > a process using libgccjit usually lasts a lot longer than a single > compiler > > run by gcc. > > That's correct, in Emacs we have to work around this running a > sub-processes for compilation tasks. > This weakens the usefulness of libgccjit considerably, doesn't it? If I have to start a new process to invoke it, only a bit is won compared to writing out C and using the C frontend of GCC through exec, no? How to you pass back the result of the compilation from the subprocess to the original process in Emacs? PS How difficult is it to fix the memory leaks?