From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41242: Port feature/native-comp to Windows Date: Sat, 16 May 2020 19:42:27 +0300 Message-ID: <83eerjde6k.fsf@gnu.org> References: <834ksi60zn.fsf@gnu.org> <83k11e4a0s.fsf@gnu.org> <83blmp4tob.fsf@gnu.org> <83o8qp1hfr.fsf@gnu.org> <837dxcv1po.fsf@gnu.org> <83imgvdf94.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="95335"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41242@debbugs.gnu.org, akrl@sdf.org To: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 16 18:43:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZzu0-000Ogx-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 May 2020 18:43:08 +0200 Original-Received: from localhost ([::1]:35848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZztz-0000zS-Qh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 May 2020 12:43:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZztu-0000zM-Eb for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 12:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZztu-0006Ky-5P for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 12:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZztt-0001Qi-Sh for bug-gnu-emacs@gnu.org; Sat, 16 May 2020 12:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 May 2020 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41242 X-GNU-PR-Package: emacs Original-Received: via spool by 41242-submit@debbugs.gnu.org id=B41242.15896473735477 (code B ref 41242); Sat, 16 May 2020 16:43:01 +0000 Original-Received: (at 41242) by debbugs.gnu.org; 16 May 2020 16:42:53 +0000 Original-Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZztd-0001Q5-9o for submit@debbugs.gnu.org; Sat, 16 May 2020 12:42:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZztb-0001Po-UI for 41242@debbugs.gnu.org; Sat, 16 May 2020 12:42:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44444) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZztW-0006Ef-Ht; Sat, 16 May 2020 12:42:38 -0400 Original-Received: from [176.228.60.248] (port=2810 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZztW-00057d-3Z; Sat, 16 May 2020 12:42:38 -0400 In-Reply-To: (message from Nicolas =?UTF-8?Q?B=C3=A9rtolo?= on Sat, 16 May 2020 13:31:41 -0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180398 Archived-At: > From: Nicolas BĂ©rtolo > Date: Sat, 16 May 2020 13:31:41 -0300 > Cc: Andrea Corallo , 41242@debbugs.gnu.org > > > No, on Posix systems we can delete the file, and it will be actually > > deleted when its last handle is closed. I believe this works with > > shared libraries as well. > > Do we actually do it? I don't think so. I don't even know where exactly > that check should be. Maybe `eval-buffer`? I'm not sure I understand what check did you have in mind. > > It's the same problem, yes. Just a slightly different use case, which > > could therefore have different probabilities for some aspects. For > > example, the probability of the same .el file being recompiled from > > two separate sessions is relatively small, except when you consider > > the "make -jN" use case. > > The probability of two Emacs recompiling the same file in the "make -jN" case is > 0. Sorry, I meant the probability of one session compiling a file while another uses it. > The case of two Emacs sessions recompiling the same file at the same time is > actually a problem. > > We could implement the following algorithm: > > - Have libgccjit write the .eln to a temporary name in the destination folder. > > - While "foo.eln" exists: > - Rename it to "foo.eln.oldN". > - Move the new .eln file to "foo.eln" Something like that, yes.