Permalink
Browse files

issue with ree and lib.free(pointer). Fixed.

  • Loading branch information...
1 parent d59866c commit 12d8d7546e80c2d1c426b17f82bf970e94e9fe4d @jmettraux committed Jan 6, 2010
Showing with 13 additions and 3 deletions.
  1. +5 −0 CHANGELOG.txt
  2. +2 −2 lib/rufus/tokyo/outlen.rb
  3. +6 −1 test/aaron.rb
View
@@ -2,6 +2,11 @@
= rufus-tokyo CHANGELOG.txt
+== rufus-tokyo - 1.0.5 not yet released
+
+- bug : issue with ree and lib.free(pointer)
+
+
== rufus-tokyo - 1.0.4 released 2009/12/25
- bug : memory leak, gotten values not freed
@@ -42,8 +42,8 @@ def outlen_op (method, *args)
ensure
outlen.free
- #lib.tcfree(out)
- lib.free(out)
+ lib.tcfree(out)
+ #lib.free(out)
end
end
end
View
@@ -4,7 +4,12 @@
def show_memory
3.times { GC.start } # try to clean up
- mem = `ps -o rss -p #{Process.pid}`[/\d+/]
+ #mem = `ps -o rss -p #{Process.pid}`[/\d+/]
+ mem = `ps -o vsz -p #{Process.pid}`[/\d+/]
+ #mem = File.open("/proc/#{Process.pid}/status", 'r') { |ps|
+ # 14.times { ps.gets }
+ # ps.gets.split[1].to_i
+ #}
puts "Current memory: #{mem}"
end

0 comments on commit 12d8d75

Please sign in to comment.