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

ruby-changes:49580

From: nobu <ko1@a...>
Date: Tue, 9 Jan 2018 08:35:42 +0900 (JST)
Subject: [ruby-changes:49580] nobu:r61695 (trunk): vm.c: remove extra ifdef

nobu	2018-01-09 08:35:36 +0900 (Tue, 09 Jan 2018)

  New Revision: 61695

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

  Log:
    vm.c: remove extra ifdef
    
    * vm.c (rb_execution_context_mark): VM_ASSERT works only if
      VM_CHECK_MODE > 0.

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 61694)
+++ vm.c	(revision 61695)
@@ -2355,9 +2355,7 @@ rb_execution_context_mark(const rb_execu https://github.com/ruby/ruby/blob/trunk/vm.c#L2355
 
 	while (cfp != limit_cfp) {
 	    const VALUE *ep = cfp->ep;
-#if VM_CHECK_MODE > 0
 	    VM_ASSERT(!!VM_ENV_FLAGS(ep, VM_ENV_FLAG_ESCAPED) == vm_ep_in_heap_p_(ec, ep));
-#endif
 	    rb_gc_mark(cfp->self);
 	    rb_gc_mark((VALUE)cfp->iseq);
 	    rb_gc_mark((VALUE)cfp->block_code);

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

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