summaryrefslogtreecommitdiff
path: root/src/comp.h
diff options
context:
space:
mode:
authorPip Cet <pipcet@gmail.com>2021-03-07 21:26:29 +0000
committerAndrea Corallo <akrl@sdf.org>2021-03-09 09:25:27 +0100
commit93f92cf1ba37f8b9abaee4b9487705bae464c4e0 (patch)
tree5d1c5111b79b5cedeba1d5098e560946986cd9af /src/comp.h
parent15aa239ba058ef02544e5dfaf066bd985d9b2f4f (diff)
downloademacs-93f92cf1ba37f8b9abaee4b9487705bae464c4e0.tar.gz
emacs-93f92cf1ba37f8b9abaee4b9487705bae464c4e0.tar.bz2
emacs-93f92cf1ba37f8b9abaee4b9487705bae464c4e0.zip
Zero stale pointer when unloading comp units (bug#46256)
* src/alloc.c (cleanup_vector): Call unload_comp_unit. * src/comp.c (unload_comp_unit): New function.
Diffstat (limited to 'src/comp.h')
-rw-r--r--src/comp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp.h b/src/comp.h
index f7d17f398c7..d01bc17565d 100644
--- a/src/comp.h
+++ b/src/comp.h
@@ -78,6 +78,8 @@ extern void hash_native_abi (void);
extern Lisp_Object load_comp_unit (struct Lisp_Native_Comp_Unit *comp_u,
bool loading_dump, bool late_load);
+extern void unload_comp_unit (struct Lisp_Native_Comp_Unit *);
+
extern Lisp_Object native_function_doc (Lisp_Object function);
extern void syms_of_comp (void);