[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/comp-static-data cd9b58c3e6 2/3: comp.c: Don't emit static bytec
From: |
Vibhav Pant |
Subject: |
scratch/comp-static-data cd9b58c3e6 2/3: comp.c: Don't emit static bytecode vectors for now. |
Date: |
Sun, 20 Nov 2022 09:24:44 -0500 (EST) |
branch: scratch/comp-static-data
commit cd9b58c3e67b62fc0c03f551e2cdb0ad5bdc3ccb
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>
comp.c: Don't emit static bytecode vectors for now.
Emacs tries to pin bytecode strings before executing them, which
causes a fault as the objects are constants in rodata.
---
src/comp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/comp.c b/src/comp.c
index 0a5b589fb9..0cb21f0547 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -3008,7 +3008,7 @@ emit_comp_lisp_obj (Lisp_Object obj,
expr.expr.with_type.init = lisp_float;
expr.expr.with_type.type = Lisp_Float;
}
- else if (COMPILEDP (obj) || VECTORP (obj) || RECORDP (obj))
+ else if (VECTORP (obj) || RECORDP (obj))
{
ptrdiff_t size = ASIZE (obj);
if (size & PSEUDOVECTOR_FLAG)