From d0e7062a64d6dfb26764b77411404fee87605d10 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 17 Dec 2022 21:49:08 +0100 Subject: [PATCH] hackily edit boehmgc-coroutine-sp-fallback.diff to work on both 8.0.x and 8.2.x --- boehmgc-coroutine-sp-fallback.diff | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/boehmgc-coroutine-sp-fallback.diff b/boehmgc-coroutine-sp-fallback.diff index 8fdafbecb..23fbcfc70 100644 --- a/boehmgc-coroutine-sp-fallback.diff +++ b/boehmgc-coroutine-sp-fallback.diff @@ -34,15 +34,13 @@ diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 4b2c429..1fb4c52 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c -@@ -673,6 +673,8 @@ GC_INNER void GC_push_all_stacks(void) - struct GC_traced_stack_sect_s *traced_stack_sect; +@@ -781,4 +781,6 @@ GC_INNER void GC_push_all_stacks(void) pthread_t self = pthread_self(); word total_size = 0; + size_t stack_limit; + pthread_attr_t pattr; if (!EXPECT(GC_thr_initialized, TRUE)) - GC_thr_init(); @@ -722,6 +724,31 @@ GC_INNER void GC_push_all_stacks(void) hi = p->altstack + p->altstack_size; /* FIXME: Need to scan the normal stack too, but how ? */