diff options
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index f80172e89bf..0c555578f81 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4158,7 +4158,7 @@ DEFUN ("comp--install-trampoline", Fcomp__install_trampoline, | |||
| 4158 | if (EQ (subr, orig_subr)) | 4158 | if (EQ (subr, orig_subr)) |
| 4159 | { | 4159 | { |
| 4160 | freloc.link_table[i] = XSUBR (trampoline)->function.a0; | 4160 | freloc.link_table[i] = XSUBR (trampoline)->function.a0; |
| 4161 | Fputhash (subr_name, Qt, Vcomp_installed_trampolines_h); | 4161 | Fputhash (subr_name, trampoline, Vcomp_installed_trampolines_h); |
| 4162 | return Qt; | 4162 | return Qt; |
| 4163 | } | 4163 | } |
| 4164 | i++; | 4164 | i++; |
| @@ -5296,7 +5296,9 @@ The last directory of this list is assumed to be the system one. */); | |||
| 5296 | redefinable effectivelly. */); | 5296 | redefinable effectivelly. */); |
| 5297 | 5297 | ||
| 5298 | DEFVAR_LISP ("comp-installed-trampolines-h", Vcomp_installed_trampolines_h, | 5298 | DEFVAR_LISP ("comp-installed-trampolines-h", Vcomp_installed_trampolines_h, |
| 5299 | doc: /* Hash table subr-name -> bool. */); | 5299 | doc: /* Hash table subr-name -> installed trampoline. |
| 5300 | This is used to prevent double trampoline instantiation but also to | ||
| 5301 | protect the trampolines against GC. */); | ||
| 5300 | Vcomp_installed_trampolines_h = CALLN (Fmake_hash_table); | 5302 | Vcomp_installed_trampolines_h = CALLN (Fmake_hash_table); |
| 5301 | 5303 | ||
| 5302 | Fprovide (intern_c_string ("nativecomp"), Qnil); | 5304 | Fprovide (intern_c_string ("nativecomp"), Qnil); |