[ruby-cvs:70660] normal:r63569 (trunk): gc.c: zero check for malloc_limit_max to initialization

normal at ruby-lang.org normal at ruby-lang.org
Tue Jun 5 09:37:06 JST 2018


normal	2018-06-05 09:37:05 +0900 (Tue, 05 Jun 2018)

  New Revision: 63569

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

  Log:
    gc.c: zero check for malloc_limit_max to initialization
    
    Repeatedly checking for malloc_limit_max in gc_reset_malloc_info
    is unnecessary, check and set it once during initialization
    in ruby_gc_set_params to simplify the hotter path
    
    * gc.c (gc_reset_malloc_info): remove zero check
      (ruby_gc_set_params): treat malloc_limit_max==0 as SIZE_MAX

  Modified files:
    trunk/gc.c


More information about the ruby-cvs mailing list