]> git.eshelyaron.com Git - emacs.git/commit
Fix native code uneffective loads after recompilation
authorAndrea Corallo <akrl@sdf.org>
Wed, 19 Aug 2020 13:26:42 +0000 (15:26 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 19 Aug 2020 14:29:56 +0000 (16:29 +0200)
commit8a931a97b8dd19a38d6f719f810280a07ba76438
treeb10244eb096cf0a70bce0385b6d657b98542500b
parent886377fefd03a7b893afad28746e69615a300994
Fix native code uneffective loads after recompilation

'dlopen' can return the same handle if two shared with the same
filename are loaded in two different times (even if the first was
deleted!).  To prevent this scenario the last modification time of the
source file is included in the hashing algorithm.

* src/comp.c (Fcomp_el_to_eln_filename): Update hashing algo to
include the source last modification date.
* src/lread.c (maybe_swap_for_eln): Do not check for eln newer
then elc as this is now unnecessary.
src/comp.c
src/lread.c