SIGN IN SIGN UP

Protocol Buffers - Google's data interchange format

0 0 34 C++

Fix ruby segment fault (#3708)

* Fix ruby segment fault

1) rb_ary_new cannot be called during allocate function. During allocate
fucntion, the containing object hasn't been marked and rb_ary_new may
invoke gc to collect containing object.
2) The global map should be marked before allocating it. Otherwise it
may be garbage collected.

* Add test

* Remove commented code

* Fix grammer error
P
Paul Yang committed
cd5f49d0942e19a5854a325941918fca02fdb409
Parent: d6c32a8
Committed by GitHub <noreply@github.com> on 10/4/2017, 12:28:49 AM