aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-04-21 16:29:52 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-04-21 16:30:33 +0900
commitc63b5c6179d700ceacf5cae8d3ee86da1294c781 (patch)
tree26d030d9dc02695f95f95f5132557d00da6b28a1
parentdc9089b51f33fcb3b68c1a8d42b8f6764994f575 (diff)
downloadruby-c63b5c6179d700ceacf5cae8d3ee86da1294c781.tar.gz
rb_memerror: abort immediately
Ditto for adab82b9a71f60ad1c7f4f8c134a5ae9198ab32a. TRY_WITH_GC was found innocent.
-rw-r--r--gc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 84e4b8a9c9..67c355678a 100644
--- a/gc.c
+++ b/gc.c
@@ -9642,6 +9642,9 @@ 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);
}