diff options
author | Matt Valentine-House <[email protected]> | 2022-06-17 11:40:11 +0100 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-06-17 09:15:22 -0400 |
commit | 721e012d42a9fbc5b8484805c880f70cfefa94ef () | |
tree | 1033e5c8065596a2622e7a3dae8e6d8e7d902d5f /lib | |
parent | c34a5469c8d53029a5f3cdde0ca855e47a92c7d7 (diff) |
[ci skip][lldb] Fix array length representation with USING_RVARGC
This commit makes `rp` report the correct array length in lldb. When USING_RVARGC is set we use 7 bits of the flags to store the array len rather than the usual 2, so they need to be part of the mask when calculating the length in lldb. When calculating whether rvargc is enabled I've used the same approach that's used by `GC.using_rvargc?` which is to detect whether there is more than one size pool in the current objspace.
Notes: Merged: https://.com/ruby/ruby/pull/6033
0 files changed, 0 insertions, 0 deletions