[Webkit-unassigned] [Bug 186725] New: InferredTypeTable wastes 2MB of HashTable capacity on cnn.com

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jun 16 12:17:54 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=186725

            Bug ID: 186725
           Summary: InferredTypeTable wastes 2MB of HashTable capacity on
                    cnn.com
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

Using tooling from bug 186698, loading can and running "notifyutil -p com.apple.WebKit.dumpHashTableCapacity" shows:

Wasted capacity: 1 998 144 bytes (used 904640 of 2902784 bytes, utilization: 31.16%) - 8209 allocations
1   0x116495945 WTF::HashTable<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, WTF::KeyValuePair<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> > >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> > > >, JSC::IdentifierRepHash, WTF::HashMap<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> >, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> > >, WTF::HashTraits<JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> > > >::KeyValuePairTraits, WTF::HashTraits<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> > > >::HashTable()
2   0x116495925 WTF::HashMap<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> >, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> > >, WTF::HashTraits<JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> > > >::HashMap()
3   0x116489b15 WTF::HashMap<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> >, JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> >, JSC::IdentifierRepHash, WTF::HashTraits<WTF::RefPtr<WTF::UniquedStringImpl, WTF::DumbPtrTraits<WTF::UniquedStringImpl> > >, WTF::HashTraits<JSC::WriteBarrier<JSC::InferredType, WTF::DumbPtrTraits<JSC::InferredType> > > >::HashMap()
4   0x116489aea JSC::InferredTypeTable::InferredTypeTable(JSC::VM&)
5   0x11648894d JSC::InferredTypeTable::InferredTypeTable(JSC::VM&)
6   0x1164888d1 JSC::InferredTypeTable::create(JSC::VM&)
7   0x116675e46 JSC::Structure::willStoreValueSlow(JSC::VM&, JSC::PropertyName, JSC::JSValue, bool, JSC::InferredTypeTable::StoredPropertyAge)
8   0x11536b938 JSC::Structure::willStoreValueForNewTransition(JSC::VM&, JSC::PropertyName, JSC::JSValue, bool)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180616/b405a885/attachment.html>


More information about the webkit-unassigned mailing list