[ruby-cvs:62117] naruse:r54954 (trunk): * gc.c (rb_gc_unprotect_logging): throw rb_memerror when it cannot

naruse at ruby-lang.org naruse at ruby-lang.org
Mon May 9 02:52:39 JST 2016


naruse	2016-05-09 02:52:38 +0900 (Mon, 09 May 2016)

  New Revision: 54954

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

  Log:
    * gc.c (rb_gc_unprotect_logging): throw rb_memerror when it cannot
      allocate memory. This is pointed out by Facebook's Infer.
    
    * gc.c (gc_prof_setup_new_record): ditto.
    
    * regparse.c (parse_regexp): ditto.
    
    * util.c (MALLOC): use xmalloc and xfree like above.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/regparse.c
    trunk/util.c


More information about the ruby-cvs mailing list