[ruby-cvs:68364] eregon:r61183 (trunk): Set Thread.report_on_exception=true by default to report exceptions in Threads

eregon at ruby-lang.org eregon at ruby-lang.org
Wed Dec 13 03:43:43 JST 2017


eregon	2017-12-13 03:43:42 +0900 (Wed, 13 Dec 2017)

  New Revision: 61183

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61183

  Log:
    Set Thread.report_on_exception=true by default to report exceptions in Threads
    
    * [Feature #14143] [ruby-core:83979]
    * vm.c (vm_init2): Set Thread.report_on_exception to true.
    * thread.c (thread_start_func_2): Add indication the message is caused
      by report_on_exception = true.
    * spec/ruby: Specify the new behavior.
    * test/ruby/test_thread.rb: Adapt and improve tests for
      Thread.report_on_exception and Thread#report_on_exception.
    * test/ruby/test_thread.rb, test/ruby/test_exception.rb: Unset
      report_on_exception for tests expecting no extra output.

  Modified files:
    trunk/spec/ruby/core/thread/report_on_exception_spec.rb
    trunk/test/ruby/test_exception.rb
    trunk/test/ruby/test_thread.rb
    trunk/thread.c
    trunk/vm.c


More information about the ruby-cvs mailing list