]> git.eshelyaron.com Git - emacs.git/commit
src/alloc.c: Remove all uses of `pure_alloc`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 1 Jul 2022 18:36:49 +0000 (14:36 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 1 Jul 2022 22:59:29 +0000 (18:59 -0400)
commit3daf833ff3f3e99b44731808cb197c0912649997
treec63bb2c7f232d63fed8678e4ae6c03e1d926eb7a
parent3a4c408a7b6f3df5ca0eb4a406efbdb4899e9742
src/alloc.c: Remove all uses of `pure_alloc`

First step of removal of the purespace: stop using it.
The more delicate parts are the handling of 0-length strings and
vectors which we used to allocate in purespace but now need to be
allocated elsewhere, but the existing code makes us work harder to
allocate them in the normal way.

* src/alloc.c: Remove all uses of `pure_alloc`.
(init_strings): Alloc empty strings in the normal heap.
(init_vectors): Allocate the zero_vector in the normal heap.
(make_pure_string, make_pure_c_string, pure_cons): Rewrite to create
normal heap objects.
(find_string_data_in_pure, make_pure_float, make_pure_bignum)
(make_pure_vector, purecopy_hash_table): Delete functions.
(purecopy): Return without purecopying.
src/alloc.c