diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-16 18:41:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-03-18 00:42:15 +0900 |
commit | cdf25cad6bae6173eb3d32e5c41f22ccad8f5fa9 (patch) | |
tree | aecf14a8899ee74889b0a17390484fedc1ed7dea | |
parent | 4fdb10e65e3e32dad99a8a8efecc04bf7c85f024 (diff) |
Fix compilation error with `RB_EXPERIMENTAL_FIBER_POOL`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5668
-rw-r--r-- | cont.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -62,6 +62,9 @@ static VALUE rb_cFiberPool; #define FIBER_POOL_INITIAL_SIZE 32 #define FIBER_POOL_ALLOCATION_MAXIMUM_SIZE 1024 #endif +#ifdef RB_EXPERIMENTAL_FIBER_POOL +#define FIBER_POOL_ALLOCATION_FREE +#endif enum context_type { CONTINUATION_CONTEXT = 0, @@ -2816,7 +2819,7 @@ fiber_pool_free(void *ptr) struct fiber_pool * fiber_pool = ptr; RUBY_FREE_ENTER("fiber_pool"); - fiber_pool_free_allocations(fiber_pool->allocations); + fiber_pool_allocation_free(fiber_pool->allocations); ruby_xfree(fiber_pool); RUBY_FREE_LEAVE("fiber_pool"); |