emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/igc 2660b567a0f 1/3: Weak refs don't need finalization


From: Gerd Moellmann
Subject: scratch/igc 2660b567a0f 1/3: Weak refs don't need finalization
Date: Mon, 29 Apr 2024 03:46:30 -0400 (EDT)

branch: scratch/igc
commit 2660b567a0fb42ec9aeb71f830556b722015bc8d
Author: Helmut Eller <eller.helmut@gmail.com>
Commit: Gerd Möllmann <gerd@gnu.org>

    Weak refs don't need finalization
    
    * src/igc.c (Figc_make_weak_ref): Don't call maybe_finalize.
---
 src/igc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/igc.c b/src/igc.c
index e2240a2d9f7..8ea7ee0581c 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -2811,9 +2811,8 @@ DEFUN ("igc-make-weak-ref", Figc_make_weak_ref, 
Sigc_make_weak_ref, 1, 1, 0,
 {
   const enum pvec_type type = PVEC_WEAK_REF;
   struct Lisp_Weak_Ref *wref = alloc (sizeof *wref, IGC_OBJ_WEAK, type);
-  int nwords_lisp = VECSIZE(struct Lisp_Weak_Ref);
+  int nwords_lisp = VECSIZE (struct Lisp_Weak_Ref);
   XSETPVECTYPESIZE (wref, type, nwords_lisp, 0);
-  maybe_finalize (wref, type);
   wref->ref = target;
   Lisp_Object obj = make_lisp_ptr (wref, Lisp_Vectorlike);
   return obj;



reply via email to

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