Project

General

Profile

Backport #8116 » fix_objspace_example.patch

sho-h (Sho Hashimoto), 03/18/2013 10:15 PM

View differences:

ext/objspace/objspace.c (working copy)
225 225
 *
226 226
 *  def memsize_of_all klass = false
227 227
 *    total = 0
228
 *    ObjectSpace.each_objects{|e|
228
 *    ObjectSpace.each_object{|e|
229 229
 *      total += ObjectSpace.memsize_of(e) if klass == false || e.kind_of?(klass)
230 230
 *    }
231 231
 *    total