about summary refs log tree commit diff
path: root/pkgs/tools/package-management
diff options
context:
space:
mode:
authorNicolas Benes <nbenes.gh@xandea.de>2023-11-19 12:04:01 +0100
committerNicolas Benes <nbenes.gh@xandea.de>2023-11-19 12:28:05 +0100
commitb2d0641e340334994ffc1cc455ab8d82a5ffb13d (patch)
tree2af0ad90e10f8f99fe6bc24f362d92ef4d0a1dbe /pkgs/tools/package-management
parentf7f4accacb472cca4eb9dc8f60a218fd6e65d91a (diff)
downloadnixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar.gz
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar.bz2
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar.lz
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar.xz
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.tar.zst
nixlib-b2d0641e340334994ffc1cc455ab8d82a5ffb13d.zip
nix: rebase boehmgc-coroutine-sp-fallback.patch
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r--pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch b/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch
index e4e2b3858ad5..578bd325d56b 100644
--- a/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch
+++ b/pkgs/tools/package-management/nix/patches/boehmgc-coroutine-sp-fallback.patch
@@ -1,8 +1,8 @@
 diff --git a/pthread_stop_world.c b/pthread_stop_world.c
-index b5d71e62..aed7b0bf 100644
+index 2b45489..0e6d8ef 100644
 --- a/pthread_stop_world.c
 +++ b/pthread_stop_world.c
-@@ -768,6 +768,8 @@ STATIC void GC_restart_handler(int sig)
+@@ -776,6 +776,8 @@ STATIC void GC_restart_handler(int sig)
  /* world is stopped.  Should not fail if it isn't.                      */
  GC_INNER void GC_push_all_stacks(void)
  {
@@ -11,10 +11,10 @@ index b5d71e62..aed7b0bf 100644
      GC_bool found_me = FALSE;
      size_t nthreads = 0;
      int i;
-@@ -851,6 +853,31 @@ GC_INNER void GC_push_all_stacks(void)
-           hi = p->altstack + p->altstack_size;
+@@ -868,6 +870,31 @@ GC_INNER void GC_push_all_stacks(void)
+             hi = p->altstack + p->altstack_size;
+ #         endif
            /* FIXME: Need to scan the normal stack too, but how ? */
-           /* FIXME: Assume stack grows down */
 +        } else {
 +          if (pthread_getattr_np(p->id, &pattr)) {
 +            ABORT("GC_push_all_stacks: pthread_getattr_np failed!");
@@ -41,5 +41,5 @@ index b5d71e62..aed7b0bf 100644
 +          #error "STACK_GROWS_UP not supported in boost_coroutine2 (as of june 2021), so we don't support it in Nix."
 +          #endif
          }
-         GC_push_all_stack_sections(lo, hi, traced_stack_sect);
- #       ifdef STACK_GROWS_UP
+ #       ifdef STACKPTR_CORRECTOR_AVAILABLE
+           if (GC_sp_corrector != 0)