guile-commits
[Top][All Lists]
Advanced

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

[Guile-commits] 12/17: Remove critical section in scm_debug_options


From: Andy Wingo
Subject: [Guile-commits] 12/17: Remove critical section in scm_debug_options
Date: Tue, 1 Nov 2016 22:50:44 +0000 (UTC)

wingo pushed a commit to branch master
in repository guile.

commit 399379bf255f7deb7e4da140081b17d6e99df894
Author: Andy Wingo <address@hidden>
Date:   Tue Nov 1 23:07:56 2016 +0100

    Remove critical section in scm_debug_options
    
    * libguile/debug.c (scm_debug_options): Remove critical section.  There
      is no memory corruption hazard and racing callers to debug options
      won't produce sensible results anyway; or anyway they will be the same
      as racing vector-set!.
---
 libguile/debug.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libguile/debug.c b/libguile/debug.c
index 878777d..dfc9bda 100644
--- a/libguile/debug.c
+++ b/libguile/debug.c
@@ -109,13 +109,9 @@ SCM_DEFINE (scm_debug_options, "debug-options-interface", 
0, 1, 0,
 {
   SCM ans;
 
-  scm_dynwind_begin (0);
-  scm_dynwind_critical_section (SCM_BOOL_F);
-
   ans = scm_options (setting, scm_debug_opts, FUNC_NAME);
   scm_stack_checking_enabled_p = SCM_STACK_CHECKING_P;
 
-  scm_dynwind_end ();
   return ans;
 }
 #undef FUNC_NAME



reply via email to

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