[Webkit-unassigned] [Bug 86436] shrinkToFit() is often not called for Vectors in CodeBlock

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 15 14:49:30 PDT 2012


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





--- Comment #6 from Oliver Hunt <oliver at apple.com>  2012-05-15 14:48:34 PST ---
(From update of attachment 142062)
View in context: https://bugs.webkit.org/attachment.cgi?id=142062&action=review

> Source/JavaScriptCore/bytecode/CodeBlock.cpp:2130
>          m_rareData->m_lineInfo.shrinkToFit();

I think we always have line info now -- it seems we should pull it out of rareData so we're not unnecessarily creating what is intended to be an uncommon allocation.

> Source/JavaScriptCore/bytecode/CodeBlock.cpp:2136
> +        m_rareData->m_callReturnIndexVector.shrinkToFit();
> +#endif
> +#if ENABLE(DFG_JIT)
> +        m_rareData->m_inlineCallFrames.shrinkToFit();
> +        m_rareData->m_codeOrigins.shrinkToFit();

Ditto for these -- do we want a lazily instantiated m_jitData member perhaps?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list