WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167468
Web Inspector: iOS: Memory timeline shows impossible values for Page size (underflowed)
https://bugs.webkit.org/show_bug.cgi?id=167468
Summary
Web Inspector: iOS: Memory timeline shows impossible values for Page size (un...
Joseph Pecoraro
Reported
2017-01-26 15:09:36 PST
Summary: iOS: Memory timeline shows impossible values for Page size (underflowed) Steps to Reproduce: 1. Inspect iOS 10 device 2. Enable Memory Timeline 3. Start and stop timeline recording => Page memory values are impossible Notes: - vmPageSize() is returning 0 on iOS (sandbox violation prevents accessing sysctlbyname)
Attachments
[PATCH] Proposed Fix
(1.85 KB, patch)
2017-01-26 15:16 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2017-01-26 15:10:38 PST
<
rdar://problem/30099051
>
Joseph Pecoraro
Comment 2
2017-01-26 15:14:07 PST
This developer forum post seems to offer the most accurate information:
https://forums.developer.apple.com/thread/47532
Namely: These should all match: - getpagesize - sysconf(_SC_PAGESIZE) - vm_page_size As: • 16 KiB on 64-bit ARM platforms • 4 KiB on everything else However, "various low-level Mach APIs (which we are using here) continue to work in terms of 4 KiB pages." You can get that value using vm_kernel_page_size. --- So this ends up matching bmalloc's vmPageSizePhysical():
> inline size_t vmPageSizePhysical() > { > #if (BPLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000) > return vm_kernel_page_size; > #else > static size_t cached; > if (!cached) > cached = sysconf(_SC_PAGESIZE); > return cached; > #endif > }
Joseph Pecoraro
Comment 3
2017-01-26 15:16:24 PST
Created
attachment 299862
[details]
[PATCH] Proposed Fix
Andreas Kling
Comment 4
2017-01-26 15:19:44 PST
Comment on
attachment 299862
[details]
[PATCH] Proposed Fix r=me!
WebKit Commit Bot
Comment 5
2017-01-26 16:58:04 PST
Comment on
attachment 299862
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 299862 Committed
r211241
: <
http://trac.webkit.org/changeset/211241
>
WebKit Commit Bot
Comment 6
2017-01-26 16:58:08 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug