diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 7 |
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 | } |