X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fcheneygc.c;h=62bd6deb650f7ec75f573b4f5e83fe771b445547;hb=d25e3478acccec70402ff32554669a982be8e281;hp=2ba625077e16a06eeadc7ed1a8f878615970ee5f;hpb=95dadf0341e9a47b448ab30f51c33c60c451a207;p=sbcl.git diff --git a/src/runtime/cheneygc.c b/src/runtime/cheneygc.c index 2ba6250..62bd6de 100644 --- a/src/runtime/cheneygc.c +++ b/src/runtime/cheneygc.c @@ -132,9 +132,7 @@ collect_garbage(generation_index_t ignore) /* it's possible that signals are blocked already if this was called * from a signal handler (e.g. with the sigsegv gc_trigger stuff) */ - sigemptyset(&tmp); - sigaddset_blockable(&tmp); - thread_sigmask(SIG_BLOCK, &tmp, &old); + block_blockable_signals(0, &old); current_static_space_free_pointer = (lispobj *) ((unsigned long) @@ -654,6 +652,8 @@ cheneygc_handle_wp_violation(os_context_t *context, void *addr) * the PA section */ SetSymbolValue(GC_PENDING,T,thread); arch_set_pseudo_atomic_interrupted(context); + maybe_save_gc_mask_and_block_deferrables + (os_context_sigmask_addr(context)); } else { maybe_gc(context); }