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

ruby-changes:48567

From: ko1 <ko1@a...>
Date: Tue, 7 Nov 2017 14:09:32 +0900 (JST)
Subject: [ruby-changes:48567] ko1:r60682 (trunk): use GET_VM()

ko1	2017-11-07 14:09:27 +0900 (Tue, 07 Nov 2017)

  New Revision: 60682

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60682

  Log:
    use GET_VM()

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 60681)
+++ gc.c	(revision 60682)
@@ -6231,7 +6231,7 @@ rb_gc_force_recycle(VALUE obj) https://github.com/ruby/ruby/blob/trunk/gc.c#L6231
 void
 rb_gc_register_mark_object(VALUE obj)
 {
-    VALUE ary_ary = GET_THREAD()->vm->mark_object_ary;
+    VALUE ary_ary = GET_VM()->mark_object_ary;
     VALUE ary = rb_ary_last(0, 0, ary_ary);
 
     if (ary == Qnil || RARRAY_LEN(ary) >= MARK_OBJECT_ARY_BUCKET_SIZE) {

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

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