emacs-diffs
[Top][All Lists]
Advanced

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

feature/igc 7474c0253a3: [MPS] Fix missing IGC_CHECK_RES calls (bug#7575


From: Pip Cet
Subject: feature/igc 7474c0253a3: [MPS] Fix missing IGC_CHECK_RES calls (bug#75755)
Date: Wed, 22 Jan 2025 07:01:49 -0500 (EST)

branch: feature/igc
commit 7474c0253a3096a46a786dd668cf58f3d291b166
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>

    [MPS] Fix missing IGC_CHECK_RES calls (bug#75755)
    
    * src/igc.c (create_weak_ap):
    (create_weak_hash_ap):
    (create_thread_aps): Use IGC_CHECK_RES.
---
 src/igc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/igc.c b/src/igc.c
index 257e7dc53f7..f32385b1d69 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -3098,6 +3098,7 @@ create_weak_ap (mps_ap_t *ap, struct igc_thread *t, bool 
weak)
     res = mps_ap_create_k (ap, pool, args);
   }
   MPS_ARGS_END (args);
+  IGC_CHECK_RES (res);
   return res;
 }
 
@@ -3114,6 +3115,7 @@ create_weak_hash_ap (mps_ap_t *ap, struct igc_thread *t, 
bool weak)
     res = mps_ap_create_k (ap, pool, args);
   }
   MPS_ARGS_END (args);
+  IGC_CHECK_RES (res);
   return res;
 }
 
@@ -3129,9 +3131,11 @@ create_thread_aps (struct igc_thread *t)
   res = mps_ap_create_k (&t->immovable_ap, gc->immovable_pool, mps_args_none);
   IGC_CHECK_RES (res);
   res = create_weak_ap (&t->weak_strong_ap, t, false);
+  IGC_CHECK_RES (res);
   res = create_weak_hash_ap (&t->weak_hash_strong_ap, t, false);
   IGC_CHECK_RES (res);
   res = create_weak_ap (&t->weak_weak_ap, t, true);
+  IGC_CHECK_RES (res);
   res = create_weak_hash_ap (&t->weak_hash_weak_ap, t, true);
   IGC_CHECK_RES (res);
 }



reply via email to

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