WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
109811
Web Inspector: don't create static local string for program literal in InspectorTimelineAgent
https://bugs.webkit.org/show_bug.cgi?id=109811
Summary
Web Inspector: don't create static local string for program literal in Inspec...
Yury Semikhatsky
Reported
2013-02-14 04:24:44 PST
InspectorTimelineAgent::innerAddRecordToTimeline contains the following declaration DEFINE_STATIC_LOCAL(String, program, (TimelineRecordType::Program)); Since there may be timeline agent on worker thread there is a risk of leaking the string in case of concurrent initialization. I think it was introduced to avoid creating wrappers each time for TimelineRecordType::Program C-string but there is overloaded operator==(cons String&, const char*) so the performance shouldn't suffer if compare type string with the constant directly.
Attachments
Patch
(1.90 KB, patch)
2013-02-14 04:26 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2013-02-14 04:26:10 PST
Created
attachment 188317
[details]
Patch
WebKit Review Bot
Comment 2
2013-02-14 05:20:57 PST
Comment on
attachment 188317
[details]
Patch Clearing flags on attachment: 188317 Committed
r142873
: <
http://trac.webkit.org/changeset/142873
>
WebKit Review Bot
Comment 3
2013-02-14 05:21:00 PST
All reviewed patches have been landed. Closing bug.
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