From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
Newsgroups: gmane.emacs.help
Subject: Re: dynamic reload of dynamic module not dynamic?
Date: Sun, 17 Apr 2022 20:44:31 +0200
Message-ID: <22BE2D29-B50B-4164-B0AC-4BDFA62A20EC@gmail.com>
References: <87o810mic0.fsf@zoho.eu>
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\))
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="15147"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: help-gnu-emacs@gnu.org
To: Emanuel Berg
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 21:18:51 2022
Return-path:
Envelope-to: geh-help-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 1ngAQ7-0003p1-NK
for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 21:18:51 +0200
Original-Received: from localhost ([::1]:41464 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1ngAQ6-0003x0-Hy
for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 15:18:50 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60072)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1ng9sy-0003V8-Ah
for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 14:44:36 -0400
Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:41796)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1ng9sw-0003oe-MV
for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 14:44:35 -0400
Original-Received: by mail-ed1-x531.google.com with SMTP id c6so15426240edn.8
for ; Sun, 17 Apr 2022 11:44:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=YsY4JYUmbe0nFBvtLh35IATFBp3aqppqw3l4gM6zhhc=;
b=j/YJjHb0Mi5PgRPl0muXfFADSG9k3iYQ66oufNZ/hSxBiDNjpZBhTcZgrPDARBSxGu
7PgIIKtYt47rXtYYawgwUEv1S61IvfAadUfhth40uJww5etp8xl1uRUy4kxhA1D7n05b
UIGvbI1II8WL4QcJG5htrbMhqKbJXr4pI8rh15+kuag30Of58/C4NQV3CAPYMGkvrW4s
uo1jqS/ZAuau7jBnXD7zmnXpW1apDVWx6IvcUoP8eZD+tcUXNJCSYU5kikOAHyQlKFCe
8Uq0dMgxnkL8THwhr4ko4Z2QUZcl+qsSYbRKVNBXc91L1Jxucse87cl7/Un008dCdz1z
ItlQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=YsY4JYUmbe0nFBvtLh35IATFBp3aqppqw3l4gM6zhhc=;
b=6mBadwQJyqnc+XIe8LRmiF2vnxICKNJpFHY7UolDZeyxQGJwME/SLUTfasKNZDHi19
fUqrKIPO1vrlXquaf6wO1fy98zrSQwP+0xC+BTLw82bQB4yffgKMBWHtZQq5qQB6VNI7
wfYDVZKJjzHLiaiPOktwAEP1WqKbFNbuwlqCYp88cc48jZZZFNaH87XOVlpnH4XOlGfc
904WTeJAA+S7xQ5/Iz7m3c/ezGlJKaCOewtyf9IMCl+1gzbDu++BC9TNdAy4aD+LLAEu
s6gmLwMGriPV280ITBGuAdfab5p/N+DbBkTqGrgjUWa/yxpnLJ6CDbXVmvb6hY4KD1A6
t2Qw==
X-Gm-Message-State: AOAM533WbU+OsNLJT8x4oOiFDCoy+wYL1jmcZacjvLGwJOJRS7r8h896
vWcK8yl0drsproK/iODQjbg=
X-Google-Smtp-Source: ABdhPJyy32IAEqeH3oX0g6Vdb9VrHNS2F+8kceeVh8Z9v8/G6Gp7WFDA7Hsy9SF+ipa/WNj7HUm74g==
X-Received: by 2002:aa7:c789:0:b0:413:605d:8d17 with SMTP id
n9-20020aa7c789000000b00413605d8d17mr8847014eds.100.1650221072835;
Sun, 17 Apr 2022 11:44:32 -0700 (PDT)
Original-Received: from smtpclient.apple (p57aaf107.dip0.t-ipconnect.de. [87.170.241.7])
by smtp.gmail.com with ESMTPSA id
g21-20020a056402115500b00413c824e422sm5886664edw.72.2022.04.17.11.44.32
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Sun, 17 Apr 2022 11:44:32 -0700 (PDT)
In-Reply-To: <87o810mic0.fsf@zoho.eu>
X-Mailer: Apple Mail (2.3696.80.82.1.1)
Received-SPF: pass client-ip=2a00:1450:4864:20::531;
envelope-from=p.stephani2@gmail.com; helo=mail-ed1-x531.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Users list for the GNU Emacs text editor
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "help-gnu-emacs"
Xref: news.gmane.io gmane.emacs.help:136939
Archived-At:
> Am 17.04.2022 um 06:42 schrieb Emanuel Berg via Users list for the GNU =
Emacs text editor :
>=20
> It seems recompiling the C for an Emacs dynamic module and
> then loading the new SO file from the same Emacs instance that
> loaded the old doesn't get you the new stuff?
Yeah, we never call dlclose on the returned shared object handle, so =
reloading a module will only increment the handle's reference count. It =
might make sense to support reloading in some way (by having =
unload-feature eventually call dlclose), but it's not trivial: we need =
to be careful to invalidate all references to affected module functions =
before calling dlclose.=