Bug 186727 - AtomicStringTable wastes 700KB of HashTable capacity on cnn.com
Summary: AtomicStringTable wastes 700KB of HashTable capacity on cnn.com
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-06-16 12:23 PDT by Simon Fraser (smfr)
Modified: 2018-06-16 12:23 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2018-06-16 12:23:01 PDT
Using tooling from bug 186698, loading can and running "notifyutil -p com.apple.WebKit.dumpHashTableCapacity" shows:

Wasted capacity: 695712 bytes (used 352864 of 1048576 bytes, utilization: 33.65%) - 1 allocations
1   0x1152d2755 WTF::HashTable<WTF::StringImpl*, WTF::StringImpl*, WTF::IdentityExtractor, WTF::StringHash, WTF::HashTraits<WTF::StringImpl*>, WTF::HashTraits<WTF::StringImpl*> >::HashTable()
2   0x1152d2735 WTF::HashSet<WTF::StringImpl*, WTF::StringHash, WTF::HashTraits<WTF::StringImpl*> >::HashSet()
3   0x1152d2715 WTF::HashSet<WTF::StringImpl*, WTF::StringHash, WTF::HashTraits<WTF::StringImpl*> >::HashSet()
4   0x1152d26f5 WTF::AtomicStringTable::AtomicStringTable()
5   0x1152d2625 WTF::AtomicStringTable::AtomicStringTable()
6   0x1152d2588 WTF::Thread::Thread()
7   0x1152d1655 WTF::Thread::Thread()
8   0x1152d7102 WTF::Thread::initializeCurrentTLS()
Comment 1 Radar WebKit Bug Importer 2018-06-16 12:23:18 PDT
<rdar://problem/41189098>