Summary: | Optimize MemoryCache::getSessionMap() a bit | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||
Component: | Page Loading | Assignee: | Chris Dumez <cdumez> | ||||||||||
Status: | RESOLVED FIXED | ||||||||||||
Severity: | Normal | CC: | ap, benjamin, commit-queue, darin, japhet, kling, koivisto, mhock | ||||||||||
Priority: | P2 | ||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Bug Depends on: | 141091 | ||||||||||||
Bug Blocks: | |||||||||||||
Attachments: |
|
Description
Chris Dumez
2015-01-29 22:34:52 PST
Created attachment 245696 [details]
Patch
Comment on attachment 245696 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=245696&action=review > Source/WebCore/loader/cache/MemoryCache.cpp:80 > + std::unique_ptr<CachedResourceMap>& map = m_sessionResources.add(sessionID, nullptr).iterator->value; auto& map = > Source/WebCore/loader/cache/MemoryCache.h:187 > - CachedResourceMap& getSessionMap(SessionID); > + CachedResourceMap& sessionResources(SessionID = SessionID::defaultSessionID()); I think it's better to be explicit about which session we want here, otherwise it's easy to always use the default session. Committed r179403: <http://trac.webkit.org/changeset/179403> This caused a crash: https://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK1%20(Tests)/r179403%20(10178)/fast/files/workers/worker-apply-blob-url-to-xhr-crash-log.txt Re-opened since this is blocked by bug 141091 Rolled out in <http://trac.webkit.org/changeset/179410>. I'll propose another fix. Created attachment 245746 [details]
Patch
New version of the patch will no longer causes any assertion hit in HashTable code. Created attachment 245752 [details]
Patch
Created attachment 245759 [details]
Patch
Comment on attachment 245759 [details] Patch Clearing flags on attachment: 245759 Committed r179431: <http://trac.webkit.org/changeset/179431> All reviewed patches have been landed. Closing bug. |