Bug 186727

Summary: AtomicStringTable wastes 700KB of HashTable capacity on cnn.com
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: darin, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>