ext/object_tracing/bug18464.rb in plain_apm-0.8.7 vs ext/object_tracing/bug18464.rb in plain_apm-0.8.8
- old
+ new
@@ -1,6 +1,9 @@
exit 0 if !defined?(Ractor)
+# avoid dumping core on crash
+Process.setrlimit(:CORE, 0)
+
require "objspace"
ObjectSpace.trace_object_allocations do
r = Ractor.new { 10 }
r.take