WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
215030
Use OS defined value for size of address space on Darwin
https://bugs.webkit.org/show_bug.cgi?id=215030
Summary
Use OS defined value for size of address space on Darwin
Keith Miller
Reported
2020-07-31 13:04:10 PDT
Use OS defined value for size of address space on Darwin
Attachments
Patch
(1.58 KB, patch)
2020-07-31 13:14 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Patch
(1.73 KB, patch)
2020-07-31 13:17 PDT
,
Keith Miller
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Keith Miller
Comment 1
2020-07-31 13:14:08 PDT
Created
attachment 405730
[details]
Patch
Keith Miller
Comment 2
2020-07-31 13:17:07 PDT
Created
attachment 405731
[details]
Patch
Yusuke Suzuki
Comment 3
2020-07-31 13:25:50 PDT
Comment on
attachment 405731
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=405731&action=review
> Source/WTF/wtf/PlatformOS.h:39 > +#include <mach/vm_param.h>
I guess it does not work IIRC: Platform.h can be included when processing sandbox definitions IIRC. So we cannot include any C / C++ things in Platform.h and dependent headers.
> Source/WTF/wtf/PlatformOS.h:143 > +#define WTF_OS_CONSTANT_EFFECTIVE_ADDRESS_WIDTH (64 - WTF::clzConstexpr(MACH_VM_MAX_ADDRESS))
Unfortunately, MACH_VM_MAX_ADDRESS is broken: MACH_VM_MAX_ADDRESS is beyond 32bit even in ARM64_32. In this case, this is OK since it is inside `CPU(ADDRESS64)`, but it would be possible that this macro returns broken value...
Keith Miller
Comment 4
2020-07-31 14:00:44 PDT
Oh, that's gross... nvm then.
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