From 4813462eeaf172b6155cb61757da2b073e2ebb74 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= <goncalossilva@gmail.com>
Date: Sat, 12 Jun 2010 11:49:11 +0100
Subject: GC at 1.9.X doesn't have malloc_allocated_size, remove support for it

---
 activesupport/lib/active_support/testing/performance.rb | 12 ------------
 1 file changed, 12 deletions(-)

(limited to 'activesupport/lib')

diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb
index 2cdac12391..3aa7ae99fe 100644
--- a/activesupport/lib/active_support/testing/performance.rb
+++ b/activesupport/lib/active_support/testing/performance.rb
@@ -339,18 +339,6 @@ begin
               def measure
                 RubyProf.measure_memory / 1024.0
               end
-
-            # Ruby 1.9 with total_malloc_allocated_size patch
-            elsif GC.respond_to?(:malloc_total_allocated_size)
-              def measure
-                GC.total_malloc_allocated_size / 1024.0
-              end
-
-            # Ruby 1.9 unpatched
-            elsif GC.respond_to?(:malloc_allocated_size)
-              def measure
-                GC.malloc_allocated_size / 1024.0
-              end
             end
 
             def format(measurement)
-- 
cgit v1.2.3