[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dynamic reload of dynamic module not dynamic?
From: |
Emanuel Berg |
Subject: |
Re: dynamic reload of dynamic module not dynamic? |
Date: |
Sun, 17 Apr 2022 22:12:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Philipp Stephani wrote:
>> 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.
Okay, where are they stored then so one can apply invalidate
to all members and then call dlclose and `load' again?
--
underground experts united
https://dataswamp.org/~incal