[前][次][番号順一覧][スレッド一覧]

ruby-changes:71450

From: Nobuyoshi <ko1@a...>
Date: Fri, 18 Mar 2022 00:42:26 +0900 (JST)
Subject: [ruby-changes:71450] cdf25cad6b (master): Fix compilation error with `RB_EXPERIMENTAL_FIBER_POOL`

https://git.ruby-lang.org/ruby.git/commit/?id=cdf25cad6b

From cdf25cad6bae6173eb3d32e5c41f22ccad8f5fa9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 16 Mar 2022 18:41:00 +0900
Subject: Fix compilation error with `RB_EXPERIMENTAL_FIBER_POOL`

---
 cont.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/cont.c b/cont.c
index 404c4cd04d..ab9c8c9e49 100644
--- a/cont.c
+++ b/cont.c
@@ -62,6 +62,9 @@ static VALUE rb_cFiberPool; https://github.com/ruby/ruby/blob/trunk/cont.c#L62
 #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) https://github.com/ruby/ruby/blob/trunk/cont.c#L2819
     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");
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]