Project

General

Profile

« Previous | Next » 

Revision 28d28e84

Added by nagachika (Tomoyuki Chikanaga) over 13 years ago

  • gc.c (ruby_mimmalloc): don't set allocated size to header.
    ruby_mimmalloc() doesn't increment allocated_size/allocations and
    decrement them in ruby_xfree() cause inconsistency.

  • gc.c (ruby_xfree): don't decrement allocated_size/allocations if
    allocated size record is 0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e