diff options
author | John Hawthorn <john@hawthorn.email> | 2019-11-21 11:05:48 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2019-11-22 12:42:24 -0800 |
commit | 8e743fad4e9124bd59bb5f14473cb188db9d3c34 (patch) | |
tree | 87f0c9f44b45c746ef45b5bf0c9ce9615f0200b2 /test/win32ole/test_win32ole_param_event.rb | |
parent | 26fd8d962ce42b7eb8d1c1eb43ddfa1ff24dc3aa (diff) |
Count pinned slots using only bitmap
This is significantly faster than checking BUILTIN_TYPEs because we
access significantly less memory. We also use popcount to count entire
words at a time.
The only functional difference from the previous implementation is that
T_ZOMBIE objects will no longer be counted. However those are temporary
objects which should be small in number, and this method has always been
an estimate.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2688
Diffstat (limited to 'test/win32ole/test_win32ole_param_event.rb')
0 files changed, 0 insertions, 0 deletions