зеркало из https://github.com/github/ruby.git
* vm.c (ruby_vm_destruct): remove useless call of
rb_gc_force_recycle(). At this line, a VM object is already freed (is changed to T_NONE) by rb_gc_call_finalizer_at_exit(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7af941da15
Коммит
bbfe069ec1
|
@ -1,3 +1,11 @@
|
||||||
|
Mon Jun 2 17:14:49 2014 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm.c (ruby_vm_destruct): remove useless call of
|
||||||
|
rb_gc_force_recycle().
|
||||||
|
|
||||||
|
At this line, a VM object is already freed
|
||||||
|
(is changed to T_NONE) by rb_gc_call_finalizer_at_exit().
|
||||||
|
|
||||||
Mon Jun 2 15:50:24 2014 Koichi Sasada <ko1@atdot.net>
|
Mon Jun 2 15:50:24 2014 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* eval.c (rb_using_refinement): add write-barriers for
|
* eval.c (rb_using_refinement): add write-barriers for
|
||||||
|
|
2
vm.c
2
vm.c
|
@ -1749,12 +1749,12 @@ int
|
||||||
ruby_vm_destruct(rb_vm_t *vm)
|
ruby_vm_destruct(rb_vm_t *vm)
|
||||||
{
|
{
|
||||||
RUBY_FREE_ENTER("vm");
|
RUBY_FREE_ENTER("vm");
|
||||||
|
|
||||||
if (vm) {
|
if (vm) {
|
||||||
rb_thread_t *th = vm->main_thread;
|
rb_thread_t *th = vm->main_thread;
|
||||||
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
|
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
|
||||||
struct rb_objspace *objspace = vm->objspace;
|
struct rb_objspace *objspace = vm->objspace;
|
||||||
#endif
|
#endif
|
||||||
rb_gc_force_recycle(vm->self);
|
|
||||||
vm->main_thread = 0;
|
vm->main_thread = 0;
|
||||||
if (th) {
|
if (th) {
|
||||||
rb_fiber_reset_root_local_storage(th->self);
|
rb_fiber_reset_root_local_storage(th->self);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче