mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix compilation error with RB_EXPERIMENTAL_FIBER_POOL
This commit is contained in:
parent
4fdb10e65e
commit
cdf25cad6b
Notes:
git
2022-03-18 00:42:40 +09:00
1 changed files with 4 additions and 1 deletions
5
cont.c
5
cont.c
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue