Bug 74676 - Placement new does an unnecessary NULL check
Summary: Placement new does an unnecessary NULL check
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Geoffrey Garen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-15 19:42 PST by Geoffrey Garen
Modified: 2011-12-19 17:23 PST (History)
5 users (show)

See Also:


Attachments
Patch (113.02 KB, patch)
2011-12-15 21:17 PST, Geoffrey Garen
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Patch (113.31 KB, patch)
2011-12-15 21:53 PST, Geoffrey Garen
no flags Details | Formatted Diff | Diff
Patch (117.85 KB, patch)
2011-12-15 23:14 PST, Geoffrey Garen
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Garen 2011-12-15 19:42:10 PST
Placement new does an unnecessary NULL check
Comment 1 Geoffrey Garen 2011-12-15 21:17:30 PST
Created attachment 119558 [details]
Patch
Comment 2 Gyuyoung Kim 2011-12-15 21:40:24 PST
Comment on attachment 119558 [details]
Patch

Attachment 119558 [details] did not pass efl-ews (efl):
Output: http://queues.webkit.org/results/10914532
Comment 3 WebKit Review Bot 2011-12-15 21:53:40 PST
Comment on attachment 119558 [details]
Patch

Attachment 119558 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/10903538
Comment 4 Geoffrey Garen 2011-12-15 21:53:40 PST
Created attachment 119563 [details]
Patch
Comment 5 Geoffrey Garen 2011-12-15 23:14:07 PST
Created attachment 119572 [details]
Patch
Comment 6 Mark Hahnenberg 2011-12-16 15:29:27 PST
Comment on attachment 119572 [details]
Patch

LGTM, but I'm not a reviewer yet :-) Just learning the reviewing ropes, so to speak.
Comment 7 Geoffrey Garen 2011-12-19 09:45:24 PST
Committed r103243: <http://trac.webkit.org/changeset/103243>
Comment 8 Csaba Osztrogonác 2011-12-19 14:56:48 PST
(In reply to comment #7)
> Committed r103243: <http://trac.webkit.org/changeset/103243>

It broke Qt Win build:
In file included from /ramdisk/qt-windows-32bit-release/build/Source/JavaScriptCore/wtf/ThreadSpecificWin.cpp:23:0:
/ramdisk/qt-windows-32bit-release/build/Source/JavaScriptCore/wtf/ThreadSpecific.h: In member function 'WTF::ThreadSpecific<T>::operator T*()':
/ramdisk/qt-windows-32bit-release/build/Source/JavaScriptCore/wtf/ThreadSpecific.h:256:14: error: 'NotNull' was not declared in this scope
Comment 9 Geoffrey Garen 2011-12-19 17:23:15 PST
Qt build fix: <http://trac.webkit.org/changeset/103287>