[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/obarray 934046990b5 5/6: Use the new obarray type for the initia
From: |
Mattias Engdegård |
Subject: |
scratch/obarray 934046990b5 5/6: Use the new obarray type for the initial obarray |
Date: |
Sat, 17 Feb 2024 14:33:09 -0500 (EST) |
branch: scratch/obarray
commit 934046990b5cbe48d863559d3d1f9c07d7dd949a
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>
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.
---
src/lread.c | 5 +----
1 file changed, 1 insertion(+), 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",
return Fnreverse (ret);
}
-#define OBARRAY_SIZE 16384
-
void
init_obarray_once (void)
{
- /* FIXME: use PVEC_OBARRAY */
- Vobarray = make_vector (OBARRAY_SIZE, make_fixnum (0));
+ Vobarray = make_obarray (15);
initial_obarray = Vobarray;
staticpro (&initial_obarray);
- branch scratch/obarray created (now 1b20fe7dff2), Mattias Engdegård, 2024/02/17
- scratch/obarray 0aeed254477 1/6: Use obarray-make instead of make-vector to create obarrays, Mattias Engdegård, 2024/02/17
- scratch/obarray a3ce285133b 2/6: Use obarrayp, not vectorp, to detect obarrays, Mattias Engdegård, 2024/02/17
- scratch/obarray f3915f0e003 3/6: Add obarray-clear and use it, Mattias Engdegård, 2024/02/17
- scratch/obarray 934046990b5 5/6: Use the new obarray type for the initial obarray,
Mattias Engdegård <=
- scratch/obarray 1b20fe7dff2 6/6: Update NEWS and manual after obarray changes, Mattias Engdegård, 2024/02/17
- scratch/obarray a556b6ff1b7 4/6: Add a proper type for obarrays, Mattias Engdegård, 2024/02/17