[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
- [Guile-commits] 16/17: Threads no longer track critical section level, (continued)
- [Guile-commits] 16/17: Threads no longer track critical section level, Andy Wingo, 2016/11/01
- [Guile-commits] 03/17: threads: Use a mutex instead of a critical section., Andy Wingo, 2016/11/01
- [Guile-commits] 07/17: Mutexes instead of critical sections in stime.c, Andy Wingo, 2016/11/01
- [Guile-commits] 01/17: api-scheduling.texi: Syntactic cleanups., Andy Wingo, 2016/11/01
- [Guile-commits] 08/17: Mutex instead of critical sectoin in symbol->keyword, Andy Wingo, 2016/11/01
- [Guile-commits] 05/17: regexec comment fix, Andy Wingo, 2016/11/01
- [Guile-commits] 15/17: Remove call/cc assertion about critical sections, Andy Wingo, 2016/11/01
- [Guile-commits] 09/17: Simplify critical section implementation, Andy Wingo, 2016/11/01
- [Guile-commits] 10/17: Mutex instead of critical section in GOOPS, Andy Wingo, 2016/11/01
- [Guile-commits] 02/17: Add scm_yield to manual alongside yield, Andy Wingo, 2016/11/01
- [Guile-commits] 12/17: Remove critical section in scm_debug_options,
Andy Wingo <=
- [Guile-commits] 14/17: Remove last critical section use, Andy Wingo, 2016/11/01
- [Guile-commits] 17/17: Deprecate critical sections, Andy Wingo, 2016/11/01