diff --git a/lib/memory/sampler.rb b/lib/memory/sampler.rb index 601b64e..2150c45 100644 --- a/lib/memory/sampler.rb +++ b/lib/memory/sampler.rb @@ -290,9 +290,6 @@ def track_allocations(generation) class_name = @cache.lookup_class_name(klass) value = (klass == String) ? @cache.lookup_string(object) : nil - # compensate for API bug - memsize = rvalue_size if memsize > 100_000_000_000 - allocation = Allocation.new(@cache, class_name, file, line, memsize, value, false) @allocated << allocation