Bug 167144 - Annotate FastMalloc functions with returns_nonnull attribute.
Summary: Annotate FastMalloc functions with returns_nonnull attribute.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 16:18 PST by Andreas Kling
Modified: 2017-01-17 17:38 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.70 KB, patch)
2017-01-17 16:22 PST, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2017-01-17 16:18:20 PST
We should put the returns_nonnull LLVM/GCC attribute on fastMalloc() and friends.
This tells the compiler that null checking the return value is never necessary.
Comment 1 Andreas Kling 2017-01-17 16:22:28 PST
Created attachment 299081 [details]
Patch
Comment 2 WebKit Commit Bot 2017-01-17 17:38:46 PST
Comment on attachment 299081 [details]
Patch

Clearing flags on attachment: 299081

Committed r210840: <http://trac.webkit.org/changeset/210840>
Comment 3 WebKit Commit Bot 2017-01-17 17:38:51 PST
All reviewed patches have been landed.  Closing bug.