WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
194694
[bmalloc] NSBundle-based application name check should be executed after debug-heap environment variable check
https://bugs.webkit.org/show_bug.cgi?id=194694
Summary
[bmalloc] NSBundle-based application name check should be executed after debu...
Yusuke Suzuki
Reported
2019-02-15 00:41:56 PST
[bmalloc] NSBundle-based application name check should be executed after debug-heap environment variable check
Attachments
Patch
(1.97 KB, patch)
2019-02-15 00:48 PST
,
Yusuke Suzuki
mark.lam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2019-02-15 00:48:54 PST
Created
attachment 362103
[details]
Patch
Mark Lam
Comment 2
2019-02-15 01:03:29 PST
Comment on
attachment 362103
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=362103&action=review
r=me with suggested improvement.
> Source/bmalloc/bmalloc/Gigacage.cpp:271 > bool result = !PerProcess<Environment>::get()->isDebugHeapEnabled(); > if (!result)
This is not related to your patch but since you're in this code, let's fix this too: 1. the name "result" is not meaningful. Let's call it debugHeapEnabled instead. 2. the double negative is hard to follow. Let's not negate the result of PerProcess<Environment>::get()->isDebugHeapEnabled(), and let's not negate the boolean value in the if check.
Yusuke Suzuki
Comment 3
2019-02-15 01:06:07 PST
Comment on
attachment 362103
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=362103&action=review
>> Source/bmalloc/bmalloc/Gigacage.cpp:271 >> if (!result) > > This is not related to your patch but since you're in this code, let's fix this too: > 1. the name "result" is not meaningful. Let's call it debugHeapEnabled instead. > 2. the double negative is hard to follow. Let's not negate the result of PerProcess<Environment>::get()->isDebugHeapEnabled(), and let's not negate the boolean value in the if check.
Sounds nice! Fixed.
Yusuke Suzuki
Comment 4
2019-02-15 01:10:05 PST
Committed
r241581
: <
https://trac.webkit.org/changeset/241581
>
Radar WebKit Bug Importer
Comment 5
2019-02-15 01:12:14 PST
<
rdar://problem/48104501
>
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