From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#67005: 30.0.50; improve nadivce/comp/trampoline handling Date: Mon, 20 Nov 2023 03:58:23 -0500 Message-ID: References: <874jhv9921.fsf@sappc2.fritz.box> <875y24zrt1.fsf@sappc2.fritz.box> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34368"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jens Schmidt , 67005@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 20 09:59:16 2023 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 1r507f-0008k5-N5 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Nov 2023 09:59:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r507S-0004v0-1O; Mon, 20 Nov 2023 03:59:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r507Q-0004um-TZ for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 03:59:00 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r507Q-0006bp-LG for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 03:59:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r507S-000306-I0 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2023 03:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Nov 2023 08:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67005 X-GNU-PR-Package: emacs Original-Received: via spool by 67005-submit@debbugs.gnu.org id=B67005.170047071411497 (code B ref 67005); Mon, 20 Nov 2023 08:59:02 +0000 Original-Received: (at 67005) by debbugs.gnu.org; 20 Nov 2023 08:58:34 +0000 Original-Received: from localhost ([127.0.0.1]:52457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r506z-0002zM-VP for submit@debbugs.gnu.org; Mon, 20 Nov 2023 03:58:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47212) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r506x-0002zA-MN for 67005@debbugs.gnu.org; Mon, 20 Nov 2023 03:58:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r506p-0006YU-MT; Mon, 20 Nov 2023 03:58:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MdH+52DvG1taZw8SFQIQuMJagUNPXVfpLjZjSeBCIdM=; b=Uh30lFWn68W5dkFhfMug jdjpkUzcbcBbyACvyAU28Z8Sx+GmNgzu7/8lMl0zZX/rik338/T9BYpjMFSgXEDs6Ihm5T+pPsEU5 YmwVzkqgPZ/uxNgYg6VFroUwpkEmL0dCWU8EFwJ01lo5hNT1kPB0QF13wA4sVrgtYnqrCLXA/SQCB Ocih50jSaPmvUkFB6/9vdxEH14zEOxWq6MP2CGkU8/e+cuqO0CzeiGcQyNkmkEXk+r3kt5wrT4UDW neb+YBlWxIytZRqHDrjL5qZfnuoVhTL+jqIy3FyjM2t8VnpZzOtUb14JA6KGzRVka300/20MoTZtP B0WnH61GMdywUg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1r506p-0006Ei-GO; Mon, 20 Nov 2023 03:58:23 -0500 In-Reply-To: (Stefan Monnier's message of "Fri, 17 Nov 2023 15:44:26 -0500") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274651 Archived-At: Stefan Monnier writes: >>> Shouldn't we implement that optimization for calls to >>> native-compiled functions, tho? At least for the case where that >>> function is defined in the same file as the call? >> >> We could, we'd need a "link table" for each file. > > Hmm... that's right. > >> Note that this would make the backtrace even more sparse :) > > You mean that it would push up the urgency to fix that bug? > Maybe fixing that bug could be used to simplify the trampolines > (because the symbol holding the function that we're calling would then > be available, so the trampoline could use it, making it possible to use > a fixed set of trampolines (one per calling convention) rather than one > per function). So IIUC what you a resuggesting would be to pass the symbol holding the function that we're calling to a generic (per calling convetion) trampoline? Andrea