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

ruby-changes:59302

From: Koichi <ko1@a...>
Date: Tue, 17 Dec 2019 20:24:00 +0900 (JST)
Subject: [ruby-changes:59302] 9d3ffcfbfc (master): disable assertion.

https://git.ruby-lang.org/ruby.git/commit/?id=9d3ffcfbfc

From 9d3ffcfbfc742ed5053b59678dbf97773a7dddc1 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Tue, 17 Dec 2019 20:22:00 +0900
Subject: disable assertion.

This assertion is not needed because we found the bug.
ba11a74745.

diff --git a/vm_core.h b/vm_core.h
index edcfdb7..e710481 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -497,7 +497,7 @@ static inline const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/vm_core.h#L497
 def_iseq_ptr(rb_method_definition_t *def)
 {
 //TODO: re-visit. to check the bug, enable this assertion.
-#if 1 || VM_CHECK_MODE > 0
+#if VM_CHECK_MODE > 0
     if (def->type != VM_METHOD_TYPE_ISEQ) rb_bug("def_iseq_ptr: not iseq (%d)", def->type);
 #endif
     return rb_iseq_check(def->body.iseq.iseqptr);
-- 
cgit v0.10.2


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

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