[前][次][番号順一覧][スレッド一覧]

ruby-changes:35538

From: normal <ko1@a...>
Date: Thu, 18 Sep 2014 07:05:30 +0900 (JST)
Subject: [ruby-changes:35538] normal:r47620 (trunk): test/-ext-/string/test_modify_expand.rb: increase limit for {je, tc}malloc

normal	2014-09-18 07:05:22 +0900 (Thu, 18 Sep 2014)

  New Revision: 47620

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47620

  Log:
    test/-ext-/string/test_modify_expand.rb: increase limit for {je,tc}malloc
    
    In this test, jemalloc and tcmalloc are both more hesitant to
    release memory to the kernel than the stock glibc allocator.
    
    Tested on jemalloc 3.6.0 (self-built) and libtcmalloc-minimal 2.0-2
    (Debian package) on x86_64-linux

  Modified files:
    trunk/ChangeLog
    trunk/test/-ext-/string/test_modify_expand.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47619)
+++ ChangeLog	(revision 47620)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Sep 18 07:03:36 2014  Eric Wong  <e@8...>
+
+	* test/-ext-/string/test_modify_expand.rb: increase limit
+	  for {je,tc}malloc [Bug #10236]
+
 Thu Sep 18 06:41:18 2014  Eric Wong  <e@8...>
 
 	* ext/zlib/zlib.c (struct gzfile): pack (288 => 272 bytes) on 64-bit
Index: test/-ext-/string/test_modify_expand.rb
===================================================================
--- test/-ext-/string/test_modify_expand.rb	(revision 47619)
+++ test/-ext-/string/test_modify_expand.rb	(revision 47620)
@@ -4,7 +4,8 @@ require_relative '../../ruby/envutil' https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_modify_expand.rb#L4
 
 class Test_StringModifyExpand < Test::Unit::TestCase
   def test_modify_expand_memory_leak
-    assert_no_memory_leak(["-r-test-/string/string"], <<-PRE, <<-CMD, "rb_str_modify_expand()")
+    assert_no_memory_leak(["-r-test-/string/string"],
+                          <<-PRE, <<-CMD, "rb_str_modify_expand()", limit: 2.5)
       s=Bug::String.new
     PRE
       size = $initial_size

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]