[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 380ba04 2/2: * Fix comp unit type decl in eln files
From: |
Andrea Corallo |
Subject: |
feature/native-comp 380ba04 2/2: * Fix comp unit type decl in eln files to fix GC crash (bug#46256) |
Date: |
Tue, 9 Mar 2021 03:26:19 -0500 (EST) |
branch: feature/native-comp
commit 380ba045c48bfbb160da288b1bd50f82d3f999f0
Author: Pip Cet <pipcet@gmail.com>
Commit: Andrea Corallo <akrl@sdf.org>
* Fix comp unit type decl in eln files to fix GC crash (bug#46256)
* src/comp.c (emit_ctxt_code): Allocate comp_unit as a Lisp_Object,
not a pointer to pointer to Lisp_Object.
---
src/comp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index e180978..9b7be5c 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -2774,7 +2774,7 @@ emit_ctxt_code (void)
comp.ctxt,
NULL,
GCC_JIT_GLOBAL_EXPORTED,
- gcc_jit_type_get_pointer (comp.lisp_obj_ptr_type),
+ comp.lisp_obj_type,
COMP_UNIT_SYM);
declare_imported_data ();