WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 37399
Remove use of STL data structures from CoreIPC code
https://bugs.webkit.org/show_bug.cgi?id=37399
Summary
Remove use of STL data structures from CoreIPC code
Sam Weinig
Reported
2010-04-10 19:52:07 PDT
No reason to keep these STL.
Attachments
Patch
(18.30 KB, patch)
2010-04-10 19:55 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Updated patch
(19.59 KB, patch)
2010-04-10 22:15 PDT
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Take 3
(19.51 KB, patch)
2010-04-11 13:14 PDT
,
Sam Weinig
andersca
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2010-04-10 19:55:25 PDT
Created
attachment 53066
[details]
Patch
Sam Weinig
Comment 2
2010-04-10 19:56:33 PDT
Please ignore the NotImplemented.h bits. That should not be there.
Sam Weinig
Comment 3
2010-04-10 22:15:31 PDT
Created
attachment 53074
[details]
Updated patch This updates the patch to use a Vector instead of a Deque in Connection as per Anders' request. It also changes some uses of malloc/free with fastMalloc/fastFree.
Darin Adler
Comment 4
2010-04-10 23:35:11 PDT
Comment on
attachment 53074
[details]
Updated patch
> - queue<WorkItem*> workItemQueue; > + Deque<WorkItem*> workItemQueue;
You said this updates the patch to use a Vector instead of a Deque. But this is a Deque.
Sam Weinig
Comment 5
2010-04-11 09:59:07 PDT
(In reply to
comment #4
)
> (From update of
attachment 53074
[details]
) > > - queue<WorkItem*> workItemQueue; > > + Deque<WorkItem*> workItemQueue; > > You said this updates the patch to use a Vector instead of a Deque. But this is > a Deque.
Only in Connection for the incomming/outgoing message queues.
Anders Carlsson
Comment 6
2010-04-11 13:07:59 PDT
Comment on
attachment 53074
[details]
Updated patch
> Index: WebKit2/Platform/RunLoop.h > =================================================================== > --- WebKit2/Platform/RunLoop.h (revision 57421) > +++ WebKit2/Platform/RunLoop.h (working copy) > @@ -27,7 +27,7 @@ > #define RunLoop_h > > #include <memory> > -#include <queue> > +#include <wtf/Deque.h> > #include <wtf/HashMap.h> > #include <wtf/Threading.h> > > @@ -99,7 +99,7 @@ private: > void wakeUp(); > > Mutex m_workItemQueueLock; > - std::queue<WorkItem*> m_workItemQueue; > + Deque<WorkItem*> m_workItemQueue;
This can actually be a Vector.
Sam Weinig
Comment 7
2010-04-11 13:14:20 PDT
Created
attachment 53099
[details]
Take 3
Anders Carlsson
Comment 8
2010-04-11 13:17:33 PDT
Comment on
attachment 53099
[details]
Take 3 Great, r=me!
Sam Weinig
Comment 9
2010-04-11 13:23:55 PDT
Fixed in
r57454
.
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