mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[lldb] Handle MacOS 64Kb heap pages in the lldb helpers
This commit is contained in:
parent
1a180b7e18
commit
d3d888b986
Notes:
git
2022-01-27 05:28:30 +09:00
1 changed files with 6 additions and 1 deletions
|
@ -10,8 +10,13 @@ from __future__ import print_function
|
||||||
import lldb
|
import lldb
|
||||||
import os
|
import os
|
||||||
import shlex
|
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_MASK = (~(~0 << HEAP_PAGE_ALIGN_LOG))
|
||||||
HEAP_PAGE_ALIGN = (1 << HEAP_PAGE_ALIGN_LOG)
|
HEAP_PAGE_ALIGN = (1 << HEAP_PAGE_ALIGN_LOG)
|
||||||
HEAP_PAGE_SIZE = HEAP_PAGE_ALIGN
|
HEAP_PAGE_SIZE = HEAP_PAGE_ALIGN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue