summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-04-29 00:01:46 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-04-29 00:05:46 +0900
commit1994ed90e4013b3a35d72743a0e7648efc31576c (patch)
tree5e280a9cba441635ec4c9cb212d01c13699c2b9d /gc.c
parent31a4ee4caa3c73549cb8f3a14c99494daaa2f204 (diff)
Remove debugging code from gc.c
Partially revert adab82b9a71f60ad1c7f4f8c134a5ae9198ab32a and c63b5c6179d700ceacf5cae8d3ee86da1294c781. The issue that these commits attempt to address was maybe fixed with 1c7f5a57125001447dc6173847dc68aa50bd8e93.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 2638fce8fe..5d313c982f 100644
--- a/gc.c
+++ b/gc.c
@@ -9644,9 +9644,6 @@ rb_memerror(void)
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)
return mem;
}
-#if defined(__GNUC__) /* && RUBY_DEBUG */
+#if defined(__GNUC__) && RUBY_DEBUG
#define RB_BUG_INSTEAD_OF_RB_MEMERROR
#endif