Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
jit_compile: Allocate scratch space as a multiple of sizeof(Lisp_Object)
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhavp committed Oct 28, 2018
1 parent b5319a4 commit 1b729ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3069,9 +3069,10 @@ jit_compile (struct jit_context *ctxt, Lisp_Object func, char *func_name,
}
}

size_t final_scratch_size = sizeof (Lisp_Object) * scratch_max_args;
gcc_jit_block_add_assignment (scratch_alloc_block, NULL, scratch_local,
jit_compile_record_xmalloc (ctxt, lo_ptr_type,
scratch_max_args));
final_scratch_size));
gcc_jit_block_end_with_jump (scratch_alloc_block, NULL, first_block);

if (!NILP (file_dump_name))
Expand Down

0 comments on commit 1b729ef

Please sign in to comment.