Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/mri/lib/memory_status.rb
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@ module Memory
keys = []

case
when RUBY_ENGINE == "jruby"
# do nothing
when File.exist?(procfile = "/proc/self/status") && (pat = /^Vm(\w+):\s+(\d+)/) =~ (data = File.binread(procfile))
PROC_FILE = procfile
VM_PAT = pat

0 comments on commit 62e9dd7

Please sign in to comment.