aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-01-24 15:11:55 +0100
committerRobert Hensing <robert@roberthensing.nl>2023-01-24 15:11:55 +0100
commit46054f932b6a7dceef127389f83bf7438d1731d0 (patch)
treebe719a46f5a2892d75c75cac70b49c921f29fe27
parent8270dccf60948fe8a6b6817c81d67eee98c07df3 (diff)
Update boehmgc-coroutine-sp-fallback.diff
-rw-r--r--boehmgc-coroutine-sp-fallback.diff18
1 files changed, 9 insertions, 9 deletions
diff --git a/boehmgc-coroutine-sp-fallback.diff b/boehmgc-coroutine-sp-fallback.diff
index 8fdafbecb..2826486fb 100644
--- a/boehmgc-coroutine-sp-fallback.diff
+++ b/boehmgc-coroutine-sp-fallback.diff
@@ -31,19 +31,19 @@ index 3dbaa3fb..36a1d1f7 100644
GC_push_all_stack(altstack_lo, altstack_hi);
}
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
-index 4b2c429..1fb4c52 100644
+index b5d71e62..aed7b0bf 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;
- pthread_t self = pthread_self();
- word total_size = 0;
+@@ -768,6 +768,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)
+ {
+ 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)
+ 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;
/* FIXME: Need to scan the normal stack too, but how ? */
/* FIXME: Assume stack grows down */