emacs-diffs
[Top][All Lists]
Advanced

[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);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]