ruby-changes:60931
From: Yusuke <ko1@a...>
Date: Wed, 29 Apr 2020 00:06:03 +0900 (JST)
Subject: [ruby-changes:60931] 1994ed90e4 (master): Remove debugging code from gc.c
https://git.ruby-lang.org/ruby.git/commit/?id=1994ed90e4 From 1994ed90e4013b3a35d72743a0e7648efc31576c Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 29 Apr 2020 00:01:46 +0900 Subject: Remove debugging code from gc.c Partially revert adab82b9a71f60ad1c7f4f8c134a5ae9198ab32a and c63b5c6179d700ceacf5cae8d3ee86da1294c781. The issue that these commits attempt to address was maybe fixed with 1c7f5a57125001447dc6173847dc68aa50bd8e93. diff --git a/gc.c b/gc.c index 2638fce..5d313c9 100644 --- a/gc.c +++ b/gc.c @@ -9644,9 +9644,6 @@ rb_memerror(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L9644 exc = ruby_vm_special_exception_copy(exc); } ec->errinfo = exc; -#ifdef __INTEL_COMPILER - __builtin_trap(); /* Yes, icc has it.*/ -#endif EC_JUMP_TAG(ec, TAG_RAISE); } @@ -9860,7 +9857,7 @@ objspace_malloc_fixup(rb_objspace_t *objspace, void *mem, size_t size) https://github.com/ruby/ruby/blob/trunk/gc.c#L9857 return mem; } -#if defined(__GNUC__) /* && RUBY_DEBUG */ +#if defined(__GNUC__) && RUBY_DEBUG #define RB_BUG_INSTEAD_OF_RB_MEMERROR #endif -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/