help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic reload of dynamic module not dynamic?


From: Philipp Stephani
Subject: Re: dynamic reload of dynamic module not dynamic?
Date: Sun, 17 Apr 2022 20:44:31 +0200


> Am 17.04.2022 um 06:42 schrieb Emanuel Berg via Users list for the GNU Emacs 
> text editor <help-gnu-emacs@gnu.org>:
> 
> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]