projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sb-safepoint: Fix interrupts during GC.
[sbcl.git]
/
src
/
runtime
/
interrupt.c
diff --git
a/src/runtime/interrupt.c
b/src/runtime/interrupt.c
index
882e2bb
..
7497d2b
100644
(file)
--- a/
src/runtime/interrupt.c
+++ b/
src/runtime/interrupt.c
@@
-1084,9
+1084,12
@@
interrupt_handle_now(int signal, siginfo_t *info, os_context_t *context)
* in PA. MG - 2005-08-29 */
lispobj info_sap, context_sap;
* in PA. MG - 2005-08-29 */
lispobj info_sap, context_sap;
+
+#ifdef LISP_FEATURE_SB_SAFEPOINT
+ WITH_GC_AT_SAFEPOINTS_ONLY()
+#else
/* Leave deferrable signals blocked, the handler itself will
* allow signals again when it sees fit. */
/* Leave deferrable signals blocked, the handler itself will
* allow signals again when it sees fit. */
-#ifndef LISP_FEATURE_SB_SAFEPOINT
unblock_gc_signals(0, 0);
#endif
context_sap = alloc_sap(context);
unblock_gc_signals(0, 0);
#endif
context_sap = alloc_sap(context);
@@
-1094,9
+1097,6
@@
interrupt_handle_now(int signal, siginfo_t *info, os_context_t *context)
FSHOW_SIGNAL((stderr,"/calling Lisp-level handler\n"));
FSHOW_SIGNAL((stderr,"/calling Lisp-level handler\n"));
-#ifdef LISP_FEATURE_SB_SAFEPOINT
- WITH_GC_AT_SAFEPOINTS_ONLY()
-#endif
funcall3(handler.lisp,
make_fixnum(signal),
info_sap,
funcall3(handler.lisp,
make_fixnum(signal),
info_sap,