Bug 24772 - Temporary AtomicStrings are causing churn in the AtomicString hash
Summary: Temporary AtomicStrings are causing churn in the AtomicString hash
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 22:47 PDT by Eric Seidel (no email)
Modified: 2010-06-10 16:53 PDT (History)
3 users (show)

See Also:


Attachments
Attempt at catching AtomicString table thrash (untested) (4.46 KB, patch)
2009-03-23 22:47 PDT, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2009-03-23 22:47:14 PDT
Temporary AtomicStrings are causing churn in the AtomicString hash

mike belshe mentioned seeing some problems related to atomicstring hashtable thrashing in Chromium tonight in #webkit.  I wanted to file this bug (and attach a possible patch) before I forgot.  Mike may already be working on a solution.
Comment 1 Eric Seidel (no email) 2009-03-23 22:47:40 PDT
Created attachment 28883 [details]
Attempt at catching AtomicString table thrash (untested)

 WebCore/platform/text/AtomicString.cpp |   54 ++++++++++++++++++++++----------
 1 files changed, 37 insertions(+), 17 deletions(-)
Comment 2 Mike Belshe 2009-03-25 10:16:24 PDT
Two places I saw this in common code:
   1) CSSFontSelector.cpp
   2) ResourceRequestBase.cpp

I filed bug 24485 for the CSSFontSelector issue.

I'm still working on the second.  The patch you have proposed won't catch this code (I think) from ResourceRequestBase.cpp:
    return (m_httpHeaderFields.contains("If-Match") ||
            m_httpHeaderFields.contains("If-Modified-Since") ||
            m_httpHeaderFields.contains("If-None-Match") ||
            m_httpHeaderFields.contains("If-Range") ||
            m_httpHeaderFields.contains("If-Unmodified-Since"));

Comment 3 Mike Belshe 2009-03-25 10:17:24 PDT
(In reply to comment #2)
> I filed bug 24485 for the CSSFontSelector issue.

Whoops - I meant bug 24785