mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
Update boehmgc-coroutine-sp-fallback.diff
This commit is contained in:
parent
8270dccf60
commit
46054f932b
@ -31,19 +31,19 @@ index 3dbaa3fb..36a1d1f7 100644
|
|||||||
GC_push_all_stack(altstack_lo, altstack_hi);
|
GC_push_all_stack(altstack_lo, altstack_hi);
|
||||||
}
|
}
|
||||||
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
|
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
|
--- a/pthread_stop_world.c
|
||||||
+++ b/pthread_stop_world.c
|
+++ b/pthread_stop_world.c
|
||||||
@@ -673,6 +673,8 @@ GC_INNER void GC_push_all_stacks(void)
|
@@ -768,6 +768,8 @@ STATIC void GC_restart_handler(int sig)
|
||||||
struct GC_traced_stack_sect_s *traced_stack_sect;
|
/* world is stopped. Should not fail if it isn't. */
|
||||||
pthread_t self = pthread_self();
|
GC_INNER void GC_push_all_stacks(void)
|
||||||
word total_size = 0;
|
{
|
||||||
+ size_t stack_limit;
|
+ size_t stack_limit;
|
||||||
+ pthread_attr_t pattr;
|
+ pthread_attr_t pattr;
|
||||||
|
GC_bool found_me = FALSE;
|
||||||
if (!EXPECT(GC_thr_initialized, TRUE))
|
size_t nthreads = 0;
|
||||||
GC_thr_init();
|
int i;
|
||||||
@@ -722,6 +724,31 @@ GC_INNER void GC_push_all_stacks(void)
|
@@ -851,6 +853,31 @@ GC_INNER void GC_push_all_stacks(void)
|
||||||
hi = p->altstack + p->altstack_size;
|
hi = p->altstack + p->altstack_size;
|
||||||
/* FIXME: Need to scan the normal stack too, but how ? */
|
/* FIXME: Need to scan the normal stack too, but how ? */
|
||||||
/* FIXME: Assume stack grows down */
|
/* FIXME: Assume stack grows down */
|
||||||
|
Loading…
Reference in New Issue
Block a user