fix GC issue on rb_global_variable array
commite85de00a3065461f6fac466276d915b809f40c7c
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:04:07 +0000 (3 17:04 +0000)
tree35f2ff4bd49b03b0cf66a6a9bf35a8fb570a1979
parentcb1337800dfaeaa0134e8c2a40815fd9174bf55a
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.
ext/unicorn_http/unicorn_http.rl