mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Avoid performance regressions in unoptimized builds
* src/alloc.c (lisp_malloc): Declare val register.
This commit is contained in:
parent
a7f5d183a8
commit
b455133450
1 changed files with 3 additions and 1 deletions
|
|
@ -872,11 +872,13 @@ void *lisp_malloc_loser EXTERNALLY_VISIBLE;
|
|||
static void *
|
||||
lisp_malloc (size_t nbytes, bool clearit, enum mem_type type)
|
||||
{
|
||||
register void *val;
|
||||
|
||||
#ifdef GC_MALLOC_CHECK
|
||||
allocated_mem_type = type;
|
||||
#endif
|
||||
|
||||
void *val = clearit ? calloc (1, nbytes) : malloc (nbytes);
|
||||
val = clearit ? calloc (1, nbytes) : malloc (nbytes);
|
||||
|
||||
#if ! USE_LSB_TAG
|
||||
/* If the memory just allocated cannot be addressed thru a Lisp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue