Skip to content

Commit

Permalink
boehmgc: Remove unused code from patch
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jun 25, 2021
1 parent 5740924 commit 5c58d84
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions boehmgc-coroutine-sp-fallback.diff
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/pthread_stop_world.c b/pthread_stop_world.c
index 1cee6a0b..8977b0dd 100644
index 1cee6a0b..46c3acd9 100644
--- a/pthread_stop_world.c
+++ b/pthread_stop_world.c
@@ -674,6 +674,8 @@ GC_INNER void GC_push_all_stacks(void)
Expand All @@ -11,7 +11,7 @@ index 1cee6a0b..8977b0dd 100644

if (!EXPECT(GC_thr_initialized, TRUE))
GC_thr_init();
@@ -723,6 +725,30 @@ GC_INNER void GC_push_all_stacks(void)
@@ -723,6 +725,28 @@ 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 */
Expand All @@ -35,9 +35,7 @@ index 1cee6a0b..8977b0dd 100644
+ lo = hi - stack_limit;
+ }
+ #else
+ if (lo < hi || lo >= hi + stack_limit) { // sp outside stack
+ lo = hi + stack_limit;
+ }
+ #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);
Expand Down

0 comments on commit 5c58d84

Please sign in to comment.