aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 20:09:03 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-19 20:09:03 +1200
commit517f7f9b578f8f48ce80dfbe5c8e61b4f8ebd1d4 (patch)
tree21bca9750e5df0f57666a903a430be661599d1f6 /cont.c
parente004afd46d3bd27bda4c4922eadcf11c7e4bfc55 (diff)
downloadruby-517f7f9b578f8f48ce80dfbe5c8e61b4f8ebd1d4.tar.gz
Fix 32-bit build and typo.
"Therefore, `fiber_pool_stack_free(&vacancy->stack)` can do the wrong thing..." should be "... `fiber_pool_stack_free(stack)` ...".
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index ecbfc4f134..b3b38e844a 100644
--- a/cont.c
+++ b/cont.c
@@ -615,7 +615,7 @@ fiber_pool_stack_free(struct fiber_pool_stack * stack)
void * base = fiber_pool_stack_base(stack);
size_t size = stack->available;
- // If this is true, the vacancy information will almost certainly be destroyed:
+ // If this is not true, the vacancy information will almost certainly be destroyed:
VM_ASSERT(size <= (stack->size - RB_PAGE_SIZE));
if (DEBUG) fprintf(stderr, "fiber_pool_stack_free: %p+%zu [base=%p, size=%zu]\n", base, size, stack->base, stack->size);
@@ -657,7 +657,7 @@ fiber_pool_stack_release(struct fiber_pool_stack * stack)
pool->used -= 1;
#ifdef FIBER_POOL_ALLOCATION_FREE
- fiber_pool_allocation * allocation = stack->allocation;
+ struct fiber_pool_allocation * allocation = stack->allocation;
stack->allocation->used -= 1;