mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/memory_status.rb (Memory::Win32): 64bit support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2ba3242ea
commit
71837f629e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Feb 9 16:10:34 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/ruby/memory_status.rb (Memory::Win32): 64bit support.
|
||||
|
||||
Thu Feb 9 16:08:55 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
|
||||
|
|
|
@ -22,7 +22,11 @@ module Memory
|
|||
extend DL::Importer
|
||||
dlload "kernel32.dll", "psapi.dll"
|
||||
include DL::Win32Types
|
||||
typealias "SIZE_T", "DWORD"
|
||||
if [nil].pack('p').bytesize == 8
|
||||
typealias "SIZE_T", "DWORD64"
|
||||
else
|
||||
typealias "SIZE_T", "DWORD32"
|
||||
end
|
||||
|
||||
PROCESS_MEMORY_COUNTERS = struct [
|
||||
"DWORD cb",
|
||||
|
|
Loading…
Reference in a new issue