summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2022-01-26 20:16:33 +0000
committerPeter Zhu <peter@peterzhu.ca>2022-01-26 15:28:09 -0500
commitd3d888b9867e4fe6baa28d4f5351f72961a3bb1f (patch)
treed69149096416eb535f740aa35ff42e94685101e3 /misc
parent1a180b7e18a2d415282df637e27a446c71246ef7 (diff)
downloadruby-d3d888b9867e4fe6baa28d4f5351f72961a3bb1f.tar.gz
[lldb] Handle MacOS 64Kb heap pages in the lldb helpers
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/lldb_cruby.py7
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