Commit 29f645d5 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* src/bytecode.c: Fix compilation with BYTE_CODE_SAFE

(struct byte_stack): Re-add `bottom'.
(exec_byte_code): Initialize it.
parent cf23d8e9
......@@ -288,6 +288,12 @@ struct byte_stack
and is relocated when that string is relocated. */
const unsigned char *pc;
/* bottom of stack. The bottom points to an area of memory
allocated with alloca in Fbyte_code. */
Lisp_Object *bottom;
/* The string containing the byte-code, and its current address.
Storing this here protects it from GC. */
Lisp_Object byte_string;
......@@ -460,6 +466,9 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth,
if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth))
memory_full (SIZE_MAX);
top = alloca ((XFASTINT (maxdepth) + 1) * sizeof *top);
stack.bottom = top + 1;
#endif = byte_stack_list;
byte_stack_list = &stack;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment