From da7f9ba304a7e253beeb4f2a2bc93ee3fdaed551 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 17 Nov 2025 17:59:21 +1300 Subject: [PATCH] Remove old memsize bug workaround. --- lib/memory/sampler.rb | 3 --- 1 file changed, 3 deletions(-) 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