aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorJoakim Verona2015-01-22 08:27:13 +0100
committerJoakim Verona2015-01-22 08:27:13 +0100
commit5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315 (patch)
treec9e3511c8164d2154c91820e0d90521762dc7bdf /src/alloc.c
parentd6ada5ae0fad7a5c85eb28b102bc460e9fe0aceb (diff)
parent7f4e7dd378c456b498c270b47b46aaae365a72ab (diff)
downloademacs-5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315.tar.gz
emacs-5c1d2b0f06ddb1f6b520b2446ce9e207e5bfc315.zip
merge master
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index bf0456c6862..571b2b03a29 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3174,11 +3174,8 @@ allocate_pseudovector (int memlen, int lisplen,
3174 eassert (memlen - lisplen <= (1 << PSEUDOVECTOR_REST_BITS) - 1); 3174 eassert (memlen - lisplen <= (1 << PSEUDOVECTOR_REST_BITS) - 1);
3175 eassert (lisplen <= (1 << PSEUDOVECTOR_SIZE_BITS) - 1); 3175 eassert (lisplen <= (1 << PSEUDOVECTOR_SIZE_BITS) - 1);
3176 3176
3177 /* Only the first LISPLEN slots will be traced normally by the GC. 3177 /* Only the first LISPLEN slots will be traced normally by the GC. */
3178 Since Qnil == 0, we can memset Lisp and non-Lisp data at one go. */ 3178 memclear (v->contents, zerolen * word_size);
3179 verify (NIL_IS_ZERO);
3180 memsetnil (v->contents, zerolen);
3181
3182 XSETPVECTYPESIZE (v, tag, lisplen, memlen - lisplen); 3179 XSETPVECTYPESIZE (v, tag, lisplen, memlen - lisplen);
3183 return v; 3180 return v;
3184} 3181}