fix GC issue on rb_global_variable array
commit50ca22510c2a64c11628f5c89eac5dd47ebc9f5f
authorXuanzhong Wei <azrlew@gmail.com>
Tue, 3 Oct 2017 14:57:18 +0000 (3 23:57 +0900)
committerEric Wong <e@80x24.org>
Tue, 3 Oct 2017 17:21:17 +0000 (3 17:21 +0000)
tree7bf02d3a4c65cf49d0668582e4f2f299bcad916e
parent288b97bff81b13beba848602929d9254b3b4b150
fix GC issue on rb_global_variable array

We need to add the array to ruby's global_list right after created it;
otherwise it probably gets GCed.

(cherry picked from commit e85de00a3065461f6fac466276d915b809f40c7c)
ext/unicorn_http/unicorn_http.rl