Project

General

Profile

« Previous | Next » 

Revision 2f81bb79

Added by alanwu (Alan Wu) over 2 years ago

Add thread and ractor counts to bug reports

This is useful for crash triaging. It also helps to hint extension
developers about the misuse of rb_thread_call_without_gvl().

Example:

$ ./miniruby -e 'Ractor.new{Ractor.receive}; Thread.new{sleep}; Process.kill:SEGV,Process.pid' <snip> -- Threading information --------------------------------------------------- Total ractor count: 2 Ruby thread count for this ractor: 2