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

ruby-changes:56694

From: Kazuhiro <ko1@a...>
Date: Mon, 29 Jul 2019 23:05:50 +0900 (JST)
Subject: [ruby-changes:56694] Kazuhiro NISHIYAMA: 968c7b4398 (master): Fix unused variable

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

From 968c7b4398ea82f764ced57f1d38606ef4b0c8e6 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 29 Jul 2019 23:03:59 +0900
Subject: Fix unused variable


diff --git a/cont.c b/cont.c
index 286e35d..59a1d8a 100644
--- a/cont.c
+++ b/cont.c
@@ -669,11 +669,11 @@ fiber_pool_stack_release(struct fiber_pool_stack * stack) https://github.com/ruby/ruby/blob/trunk/cont.c#L669
 #ifdef FIBER_POOL_ALLOCATION_FREE
     struct fiber_pool_allocation * allocation = stack->allocation;
 
-    stack->allocation->used -= 1;
+    allocation->used -= 1;
 
     // Release address space and/or dirty memory:
-    if (stack->allocation->used == 0) {
-        fiber_pool_allocation_free(stack->allocation);
+    if (allocation->used == 0) {
+        fiber_pool_allocation_free(allocation);
     }
     else if (stack->pool->free_stacks) {
         fiber_pool_stack_free(&vacancy->stack);
-- 
cgit v0.10.2


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

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