From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Newsgroups: gmane.emacs.bugs Subject: bug#41242: Port feature/native-comp to Windows - Determine the emacs root dir... Date: Sat, 30 May 2020 10:23:55 -0300 Message-ID: References: <83k10wshvg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000008b03c05a6dd7a95" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41242@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 30 15:25:13 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 1jf1U9-000XqB-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 May 2020 15:25:13 +0200 Original-Received: from localhost ([::1]:48996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf1U8-0001wE-61 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 May 2020 09:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf1Tz-0001vv-4I for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 09:25:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jf1Ty-0005tb-GU for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 09:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jf1Ty-0001Gu-9l for bug-gnu-emacs@gnu.org; Sat, 30 May 2020 09:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas =?UTF-8?Q?B=C3=A9rtolo?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 May 2020 13:25:02 +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.15908450564828 (code B ref 41242); Sat, 30 May 2020 13:25:02 +0000 Original-Received: (at 41242) by debbugs.gnu.org; 30 May 2020 13:24:16 +0000 Original-Received: from localhost ([127.0.0.1]:57167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf1TE-0001Fo-I6 for submit@debbugs.gnu.org; Sat, 30 May 2020 09:24:16 -0400 Original-Received: from mail-oo1-f51.google.com ([209.85.161.51]:43157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jf1TC-0001Fa-K0 for 41242@debbugs.gnu.org; Sat, 30 May 2020 09:24:15 -0400 Original-Received: by mail-oo1-f51.google.com with SMTP id u190so480984ooa.10 for <41242@debbugs.gnu.org>; Sat, 30 May 2020 06:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/vqzOGpZ3ozT7wnloLyz0QR1NGCSgQIN6WByvTySB4I=; b=moblqQXlaVIdwtzV5dpV5WRw9dnxT4NccpG0Xf8iLPgs9wWLk7hB9LDG5fmRo0eudr 4eKB047cyFAAn+8i86u/7JDHHXXXtzvl0zTmIXy06zhKmZlJz//JgYzcWyu/5v1XLVS9 D0S9nhEIARo8MPD8B/8PEYDvxUi8jU6YVejaEydVp4bHfx3w73oRLf5E0HBfe/TiVd+8 TrDm22Z+pquJeq89AAN2OiNIlz1HN0xTrrFn77gwS/asj786UaGQjZFJh00HprQVYMNc 5qJ+KVNuwferlJYDHZBadC6KzWfW3YF6zGLA0H/X+D+Ssvlw7ek9z71nk5JxGBpCsG/C X1kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/vqzOGpZ3ozT7wnloLyz0QR1NGCSgQIN6WByvTySB4I=; b=MopHgrXnRu4rJhZSJp5o9umj9aYpYnVwpaWMb4LtpPOn0IkLq1Cs7C8MNQJ1CqKiiY c0R/HUhe8624YzalBo5yGGp7vEQ5ETbk0vhwQQBK5jxtUSnuabYh5oPJGGN/aASeP6LF 2h9/4FW4z1NRp2zn4DdFupeLGnmw6Suv6gzuOq8eFBs5CCvgvlB2N5wScLKFpGI7ETCz C10Wfl3wedshvmCQs0zayWRPkeaiIIbLGOt4ZyzWkHil/RZGpSnpKWz9RuPVjHEeT5U/ BAAiQS6PnAUeMeVk4uJcGaiZrL5cFGdy6ShV3ibuztlNeph2c3bhlg14y4vG5qISatTT pNuQ== X-Gm-Message-State: AOAM532OgR0ABRcuk2HEBfUYaKUJG9dvRs5pp9y/DUAB7F7YNFZ7Yqln Tl0ElmzNiUE3HUfoEu3T+oQ/oH1IHO+ANk2tWp0= X-Google-Smtp-Source: ABdhPJyYDzR93Bv2PjfuquiUFVdAXBRKt76SC/6GT1pMKdFPYIvQStW6ZEGDci+UKZCUXTuQLksmBctexBV6B+3yMsc= X-Received: by 2002:a4a:bf14:: with SMTP id r20mr10614755oop.18.1590845048900; Sat, 30 May 2020 06:24:08 -0700 (PDT) In-Reply-To: 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:181225 Archived-At: --00000000000008b03c05a6dd7a95 Content-Type: text/plain; charset="UTF-8" I have found a few bugs in Windows. Patches attached (they are in my repo too). - It is still a good idea to avoid the call to getenv("emacs_dir"), if only for performance reasons. - We can't use "gensym" for register_native_comp_unit() because the dynamic library may not have been loaded yet when loading a dump file. - Commit `f5dceed09a8234548d5b3acb76d443569533cab9` "* lisp/loadup.el: Use new 'native-comp-available-p'." causes load_gccjit_if_necessary() to be called in temacs. This didn't work because because term/w32-win.el had not been loaded yet. In particular, we need `dynamic-library-alist` to be defined to know the name of the libgccjit DLL. I have defined this in syms_of_emacs(). This definition should be active only while dumping. - This last bug is kinda confusing. I'm not sure about my diagnosis. The list `delayed_comp_unit_disposal_list` has nodes allocated with xmalloc(). It seems that these blocks allocated with xmalloc() get GC'd or they get corrupted somehow and thus they don't survive until Emacs is about to close, which is when we need the list. I solved it by allocating the data and nodes with HeapAlloc(). Thanks, Nico. --00000000000008b03c05a6dd7a95 Content-Type: application/octet-stream; name="0001-Determine-the-emacs-root-dir-only-when-necessary.patch" Content-Disposition: attachment; filename="0001-Determine-the-emacs-root-dir-only-when-necessary.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kato208n0 RnJvbSA0MmU1ZDM0ZjlmMTdlYzg1ZGEzNzZmYjZjMTg1NjliYTFjYzM1M2Q0IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Tmljb2w9QzM9QTFzPTIwQj1DMz1BOXJ0b2xv Pz0gPG5pY29sYXNiZXJ0b2xvQGdtYWlsLmNvbT4KRGF0ZTogTW9uLCAyNSBNYXkgMjAyMCAxNzo1 NToyMyAtMDM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CkKIHsKICAgc3RhdGljIGNo YXIgcm9vdF9kaXJbNF07CiAKZGlmZiAtLWdpdCBhL3NyYy93MzIuYyBiL3NyYy93MzIuYwppbmRl eCAzZTcxZDBkMzgzLi5iY2U4MzcxMTY0IDEwMDY0NAotLS0gYS9zcmMvdzMyLmMKKysrIGIvc3Jj L3czMi5jCkBAIC0zMTQ3LDcgKzMxNDcsNyBAQCAjZGVmaW5lIFNFVF9FTlZfQlVGX1NJWkUgKDQg KiBNQVhfUEFUSCkJLyogdG8gY292ZXIgRU1BQ1NMT0FEUEFUSCAqLwogLyogQ2FsbGVkIGZyb20g ZXhwYW5kLWZpbGUtbmFtZSB3aGVuIGRlZmF1bHQtZGlyZWN0b3J5IGlzIG5vdCBhIHN0cmluZy4g ICovCiAKIGNoYXIgKgotZW1hY3Nfcm9vdF9kaXIgKHZvaWQpCit3MzJfZW1hY3Nfcm9vdF9kaXIg KHZvaWQpCiB7CiAgIHN0YXRpYyBjaGFyIHJvb3RfZGlyW01BWF9VVEY4X1BBVEhdOwogICBjb25z dCBjaGFyICpwOwotLSAKMi4yNS4xLndpbmRvd3MuMQoK --00000000000008b03c05a6dd7a95 Content-Type: application/octet-stream; name="0002-Do-not-call-gensym-too-early-when-loading-a-dump-fil.patch" Content-Disposition: attachment; filename="0002-Do-not-call-gensym-too-early-when-loading-a-dump-fil.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kato20ah1 RnJvbSBmYzJiNzcwODA1ZDA2NGQzMzY5ZGRiZWUwNDY4ZmZiODViM2MzYTcyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Tmljb2w9QzM9QTFzPTIwQj1DMz1BOXJ0b2xv Pz0gPG5pY29sYXNiZXJ0b2xvQGdtYWlsLmNvbT4KRGF0ZTogRnJpLCAyOSBNYXkgMjAyMCAyMTow MzowMCAtMDMwMApTdWJqZWN0OiBbUEFUQ0ggMi80XSBEbyBub3QgY2FsbCBgZ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UgaGF2ZSB0byBkbyB0aGlz IHNpbmNlIHdlIGNhbid0IHVzZSBgZ2Vuc3ltJy4gVGhpcyBmdW5jdGlvbiBpcworICAgICBjYWxs ZWQgZWFybHkgd2hlbiBsb2FkaW5nIGEgZHVtcCBmaWxlIGFuZCBzdWJyLmVsIG1heSBub3QgaGF2 ZQorICAgICBiZWVuIGxvYWRlZCB5ZXQuICovCisgIHN0YXRpYyBFTUFDU19VSU5UIGNvdW50Owor CisgIGlmIChjb3VudCA+PSBNT1NUX1BPU0lUSVZFX0ZJWE5VTSkKKyAgICByZXR1cm47CisKKyAg RnB1dGhhc2gobWFrZV9maXhudW0oY291bnQrKyksIGNvbXBfdSwgYWxsX2xvYWRlZF9jb21wX3Vu aXRzX2gpOwogI2VuZGlmCiB9CiAKLS0gCjIuMjUuMS53aW5kb3dzLjEKCg== --00000000000008b03c05a6dd7a95 Content-Type: application/octet-stream; name="0003-Fix-loading-of-libgccjit.dll-while-dumping-in-Window.patch" Content-Disposition: attachment; filename="0003-Fix-loading-of-libgccjit.dll-while-dumping-in-Window.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kato20al2 RnJvbSAzMTRmYzgyYWUzYTUwNTBlZDFiNmZkMDZiYjA1N2YyNmI3NDBlZTJhIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Tmljb2w9QzM9QTFzPTIwQj1DMz1BOXJ0b2xv Pz0gPG5pY29sYXNiZXJ0b2xvQGdtYWlsLmNvbT4KRGF0ZTogRnJpLCAyOSBNYXkgMjAyMCAyMTow ODozNyAtMDMwMApTdWJqZWN0OiBbUEFUQ0ggMy80XSBGaXggbG9hZGluZyBvZiBsaWJnY2NqaXQu ZGxsIHdoaWxlIGR1bXBpbmcgaW4gV2luZG93cy4KCmxvYWR1cC5lbCBjYWxscyBgbmF0aXZlLWNv bXAtYXZhaWxhYmxlLXAnLCB0aGF0IGNhbGxzCmxvYWRfZ2Njaml0X2lm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cm0vdzMyLXdpbi5lbAorICAgICBk ZWZpbmVzIGBkeW5hbWljLWxpYnJhcnktYWxpc3RgLiBUaGlzIHdpbGwgZmFpbCBpZiB0aGF0IHZh cmlhYmxlCisgICAgIGlzIGVtcHR5LCBzbyBhZGQgbGliZ2Njaml0LmRsbCB0byBpdC4gKi8KKyAg VmR5bmFtaWNfbGlicmFyeV9hbGlzdCA9IGxpc3QxKGxpc3QyKFFnY2NqaXQsCisgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBidWlsZF9zdHJpbmcoImxpYmdjY2ppdC5kbGwi KSkpOworI2Vsc2UKICAgVmR5bmFtaWNfbGlicmFyeV9hbGlzdCA9IFFuaWw7CisjZW5kaWYKICAg RnB1dCAoaW50ZXJuX2Nfc3RyaW5nICgiZHluYW1pYy1saWJyYXJ5LWFsaXN0IiksIFFyaXNreV9s b2NhbF92YXJpYWJsZSwgUXQpOwogCiAjaWZkZWYgV0lORE9XU05UCi0tIAoyLjI1LjEud2luZG93 cy4xCgo= --00000000000008b03c05a6dd7a95 Content-Type: application/octet-stream; name="0004-Use-Windows-allocation-APIs-for-delayed_comp_unit_di.patch" Content-Disposition: attachment; filename="0004-Use-Windows-allocation-APIs-for-delayed_comp_unit_di.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kato20ao3 RnJvbSBlZTgyYmE1N2ZiNTM5NzcxOTI5NmQ4ODJmYzdiMGJmNTEzMWUxOWI4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiA9P1VURi04P3E/Tmljb2w9QzM9QTFzPTIwQj1DMz1BOXJ0b2xv Pz0gPG5pY29sYXNiZXJ0b2xvQGdtYWlsLmNvbT4KRGF0ZTogRnJpLCAyOSBNYXkgMjAyMCAyMToy NTo1NSAtMDMwMApTdWJqZWN0OiBbUEFUQ0ggNC80XSBVc2UgV2luZG93cyBhbGxvY2F0aW9uIEFQ SXMgZm9yCiBkZWxheWVkX2NvbXBfdW5p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