diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2022-01-26 20:16:33 +0000 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-01-26 15:28:09 -0500 |
commit | d3d888b9867e4fe6baa28d4f5351f72961a3bb1f (patch) | |
tree | d69149096416eb535f740aa35ff42e94685101e3 /misc | |
parent | 1a180b7e18a2d415282df637e27a446c71246ef7 (diff) |
[lldb] Handle MacOS 64Kb heap pages in the lldb helpers
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5495
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/lldb_cruby.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/lldb_cruby.py b/misc/lldb_cruby.py index d26c44f71e..15d17d46da 100755 --- a/misc/lldb_cruby.py +++ b/misc/lldb_cruby.py @@ -10,8 +10,13 @@ from __future__ import print_function import lldb import os import shlex +import platform + +if platform.system() == 'Darwin': + HEAP_PAGE_ALIGN_LOG = 16 +else: + HEAP_PAGE_ALIGN_LOG = 14 -HEAP_PAGE_ALIGN_LOG = 14 HEAP_PAGE_ALIGN_MASK = (~(~0 << HEAP_PAGE_ALIGN_LOG)) HEAP_PAGE_ALIGN = (1 << HEAP_PAGE_ALIGN_LOG) HEAP_PAGE_SIZE = HEAP_PAGE_ALIGN |