aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-02-11 15:11:21 +0100
committerMattias EngdegÄrd2024-02-17 20:29:41 +0100
commit934046990b5cbe48d863559d3d1f9c07d7dd949a (patch)
tree3e5ec78380aaefb55614312e573181713ea9e773
parenta556b6ff1b709bb8a88a995a6f35b52fb52910f0 (diff)
downloademacs-934046990b5cbe48d863559d3d1f9c07d7dd949a.tar.gz
emacs-934046990b5cbe48d863559d3d1f9c07d7dd949a.zip
Use the new obarray type for the initial obarray
* src/lread.c (OBARRAY_SIZE): Remove. (load_path_check): Create an obarray object instead of a vector. The initial size is less important because it will grow as needed.
-rw-r--r--src/lread.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lread.c b/src/lread.c
index 01a51125b43..2251b4f2509 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -5440,13 +5440,10 @@ DEFUN ("internal--obarray-buckets",
5440 return Fnreverse (ret); 5440 return Fnreverse (ret);
5441} 5441}
5442 5442
5443#define OBARRAY_SIZE 16384
5444
5445void 5443void
5446init_obarray_once (void) 5444init_obarray_once (void)
5447{ 5445{
5448 /* FIXME: use PVEC_OBARRAY */ 5446 Vobarray = make_obarray (15);
5449 Vobarray = make_vector (OBARRAY_SIZE, make_fixnum (0));
5450 initial_obarray = Vobarray; 5447 initial_obarray = Vobarray;
5451 staticpro (&initial_obarray); 5448 staticpro (&initial_obarray);
5452 5449