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 Date: Thu, 14 May 2020 14:51:34 -0300 Message-ID: References: <834ksi60zn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="31111"; 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 Thu May 14 19:52: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 1jZI1h-0007zT-F5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 19:52:09 +0200 Original-Received: from localhost ([::1]:36578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZI1g-0004Hq-DJ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 13:52:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZI1a-0004FG-Bs for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 13:52:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZI1a-0003X9-1V for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 13:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZI1Z-00057a-W4 for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 13:52: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: Thu, 14 May 2020 17:52: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.158947871319663 (code B ref 41242); Thu, 14 May 2020 17:52:01 +0000 Original-Received: (at 41242) by debbugs.gnu.org; 14 May 2020 17:51:53 +0000 Original-Received: from localhost ([127.0.0.1]:34723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZI1R-000575-3W for submit@debbugs.gnu.org; Thu, 14 May 2020 13:51:53 -0400 Original-Received: from mail-oo1-f42.google.com ([209.85.161.42]:37353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZI1P-00056o-Jy for 41242@debbugs.gnu.org; Thu, 14 May 2020 13:51:51 -0400 Original-Received: by mail-oo1-f42.google.com with SMTP id v6so908189oou.4 for <41242@debbugs.gnu.org>; Thu, 14 May 2020 10:51:51 -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=V1CzyI/R/uajAVa+NYdMKKJg286AoacqVe/P4GgHxAI=; b=utgoMdo0xU36pqLCCwAreu5gHyxZpHDzgRuydvX0vYIQU93INrLr0/8yhbHOGMjdvv elvWvnAlQzvUFcCFZctLCWdbfeH25GSBpikwtoWiCfWz1x08XpMIkFBzTZlonRx+JytV XIJSxbla/w0puAOpKWLApR6xWs+5qIfJOZgoufE/hSk4BULLumIrS+5HI/p374o6S7fn QJu9wUVzJMGoW6/suZ45hUltmLr9JENXqCsc8/4yOE9Utx/b2NoPjlBRX257p0ePWptG j0L+KhrrFh+wKwc4O+U+4K/cIvbJTYeVIR+5wBx4dM6GYgrDICR1l+E9H5SB4LLGyreL 6hFg== 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=V1CzyI/R/uajAVa+NYdMKKJg286AoacqVe/P4GgHxAI=; b=k715ASernl+TzgqbMCI8lLZ6RPA7HNe15stmzrZA8pLOcmCunGIkqEtaVvVMs9Gfkj dOHOFA/BqnJ0tIuP8z9vi+lxDY4NbVYaq262Jk9fe0acOYbFOfQh9anoJAXi+PY7lM6Q WWyCEKVAMCk6q4sr3hGtiL5ftBV0nVIxOGhdfY9XPIeb0h7AQ+Vs1m9MnYEgXUkro/F1 4OiT5ek0Gu96Fo410AFgwB1Rcm8MDNiMmGs657D1oyGU1lhfTZjxfV9191TNeZcHvRdG MOxTTH+CYbfU1TonXFKe9u75q+w2FO435+gkAaZbMVp31CdqYknhJV0D0NhYEsQsUmtd y8gw== X-Gm-Message-State: AOAM533G2MQfYC+Hvh85xxsCb/iZ9RfPPvuoJMfsdC5G0Damfu0GZg9p XJVUVjtFMeRwvOdi+5MbOqZ2kWnjf4DF4KBar6E= X-Google-Smtp-Source: ABdhPJxu2NJuxLZA0v5mcWnU75RV+MOpMnUeYcnFSSyiJzZVwuqF130jS20yHT7Ve5PX+kvHjD9VftKjZX/+kUtdP3I= X-Received: by 2002:a4a:ad0d:: with SMTP id r13mr4583507oon.22.1589478705955; Thu, 14 May 2020 10:51:45 -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:180230 Archived-At: > 1- eln files do not retain the orginal function bytecode. That should be easy to change. > in any point of the code you can get the symbol-function of a defined function and leak it everywhere. This is why I said the GC should do it. It should be able to find all references. > We can't technically "swap" functions definitions, the best we do is just > redefine them that is set a certain symbol-function (what late load does). When the GC finds a Lisp_Object that points to a subr we want to unload, it should replace it with one that points to its bytecode equivalent version. > Even worst the function you want to remove could be active in the stack! You are right. I hadn't considered this. It can still be done, but would need to wait until the function finishes.