WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
186322
Switch to system malloc on iOS when nano malloc is disabled
https://bugs.webkit.org/show_bug.cgi?id=186322
Summary
Switch to system malloc on iOS when nano malloc is disabled
Saam Barati
Reported
2018-06-05 14:18:59 PDT
...
Attachments
patch
(5.21 KB, patch)
2018-06-25 18:45 PDT
,
Saam Barati
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Geoffrey Garen
Comment 1
2018-06-05 14:35:02 PDT
I don't think we should do this.
Filip Pizlo
Comment 2
2018-06-05 16:47:57 PDT
(In reply to Geoffrey Garen from
comment #1
)
> I don't think we should do this.
We have data that it's either a space progression or is space-neutral, and that it's time-neutral. So, I think we should do it.
Radar WebKit Bug Importer
Comment 3
2018-06-07 16:08:22 PDT
<
rdar://problem/40914671
>
Saam Barati
Comment 4
2018-06-25 18:45:34 PDT
Created
attachment 343572
[details]
patch
EWS Watchlist
Comment 5
2018-06-25 18:48:28 PDT
Attachment 343572
[details]
did not pass style-queue: ERROR: Source/bmalloc/bmalloc/Environment.cpp:42: malloc_engaged_nano is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Saam Barati
Comment 6
2018-06-25 19:28:50 PDT
Comment on
attachment 343572
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=343572&action=review
> Source/bmalloc/bmalloc/BPlatform.h:241 > +#if ((BPLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) || (BPLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 50000) || (BPLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 120000)) \
I can simplify this and just make this IOS since the other two are true if this is IOS
Keith Miller
Comment 7
2018-06-25 21:34:31 PDT
Comment on
attachment 343572
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=343572&action=review
r=me.
>> Source/bmalloc/bmalloc/BPlatform.h:241 >> +#if ((BPLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) || (BPLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 50000) || (BPLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 120000)) \ > > I can simplify this and just make this IOS since the other two are true if this is IOS
I'm confused is __TV_OS_VERSION_MIN_REQUIRED defined on iOS? Or are you saying that if __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000 then __TV_OS_VERSION_MIN_REQUIRED will be >= 120000 also?
> Source/bmalloc/bmalloc/ProcessCheck.mm:62 > + if (NSString *appName = [[NSBundle mainBundle] bundleIdentifier]) {
Maybe we should look for an environment variable too?
Saam Barati
Comment 8
2018-06-25 23:16:18 PDT
Comment on
attachment 343572
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=343572&action=review
>>> Source/bmalloc/bmalloc/BPlatform.h:241 >>> +#if ((BPLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) || (BPLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 50000) || (BPLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 120000)) \ >> >> I can simplify this and just make this IOS since the other two are true if this is IOS > > I'm confused is __TV_OS_VERSION_MIN_REQUIRED defined on iOS? Or are you saying that if __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000 then __TV_OS_VERSION_MIN_REQUIRED will be >= 120000 also?
I realized this is actually required. I'm not going to simplify this. Keith, I'm not sure what you're question is here, __TV_OS_VERSION_MIN_REQUIRED is 120000 for the newest tvOS version
>> Source/bmalloc/bmalloc/ProcessCheck.mm:62 >> + if (NSString *appName = [[NSBundle mainBundle] bundleIdentifier]) { > > Maybe we should look for an environment variable too?
Seems unnecessary ATM since we have malloc environment variables. We should do that in the future if we use this for more things that controlling system malloc.
WebKit Commit Bot
Comment 9
2018-06-26 00:38:13 PDT
Comment on
attachment 343572
[details]
patch Clearing flags on attachment: 343572 Committed
r233192
: <
https://trac.webkit.org/changeset/233192
>
WebKit Commit Bot
Comment 10
2018-06-26 00:38:15 PDT
All reviewed patches have been landed. Closing bug.
Simon Fraser (smfr)
Comment 11
2018-06-26 10:28:46 PDT
Comment on
attachment 343572
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=343572&action=review
> Source/bmalloc/ChangeLog:3 > + Wasm: Any function argument of type Void should be a validation error
This seems like the wrong title
Saam Barati
Comment 12
2018-06-26 12:15:52 PDT
Comment on
attachment 343572
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=343572&action=review
>> Source/bmalloc/ChangeLog:3 >> + Wasm: Any function argument of type Void should be a validation error > > This seems like the wrong title
Ugh, yeah, I used the wrong bug ID in prepare-ChangeLog
Saam Barati
Comment 13
2018-06-26 12:40:07 PDT
Committed:
https://trac.webkit.org/changeset/233216/webkit
- Fixes watchOS build - Fixes bad changelog title and bug id
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