Bug 254646

Summary: RenderBox::computeInlineDirectionMargins() is causing system malloc heap allocations
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Layout and RenderingAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-03-28 22:04:56 PDT
RenderBox::computeInlineDirectionMargins() is causing system malloc heap allocations:

Sample Count, Samples %, Normalized CPU %, Symbol
21, 0.0%, 0.0%, tiny_malloc_should_clear (in libsystem_malloc.dylib)
20, 0.0%, 0.0%,     szone_malloc_should_clear (in libsystem_malloc.dylib)
8, 0.0%, 0.0%,         operator new(unsigned long) (in libc++abi.dylib)
5, 0.0%, 0.0%,             WebCore::RenderBox::computeInlineDirectionMargins(WebCore::RenderBlock const&, WebCore::LayoutUnit, std::__1::optional<WebCore::LayoutUnit>, WebCore::LayoutUnit, WebCore::LayoutUnit&, WebCore::LayoutUnit&) const (in WebCore)
3, 0.0%, 0.0%,             WebCore::RenderBox::fillAvailableMeasure(WebCore::LayoutUnit, WebCore::LayoutUnit&, WebCore::LayoutUnit&) const (in WebCore)


Sample Count, Samples %, Normalized CPU %, Symbol
15, 0.0%, 0.0%, _malloc_zone_malloc (in libsystem_malloc.dylib)
5, 0.0%, 0.0%,     WebCore::RenderBox::fillAvailableMeasure(WebCore::LayoutUnit, WebCore::LayoutUnit&, WebCore::LayoutUnit&) const (in WebCore)
5, 0.0%, 0.0%,     WebCore::RenderBox::computeInlineDirectionMargins(WebCore::RenderBlock const&, WebCore::LayoutUnit, std::__1::optional<WebCore::LayoutUnit>, WebCore::LayoutUnit, WebCore::LayoutUnit&, WebCore::LayoutUnit&) const (in WebCore)


Sample Count, Samples %, Normalized CPU %, Symbol
13, 0.0%, 0.0%, free (in libsystem_malloc.dylib)
6, 0.0%, 0.0%,     WebCore::RenderBox::computeLogicalWidthInFragment(WebCore::RenderBox::LogicalExtentComputedValues&, WebCore::RenderFragmentContainer*) const (in WebCore)
3, 0.0%, 0.0%,     __CFRunLoopDoTimers (in CoreFoundation)
3, 0.0%, 0.0%,     WebCore::RenderBox::computeLogicalWidthInFragmentUsing(WebCore::SizeType, WebCore::Length, WebCore::LayoutUnit, WebCore::RenderBlock const&, WebCore::RenderFragmentContainer*) const (in WebCore)
1, 0.0%, 0.0%,     JSC::PreciseAllocation::sweep() (in JavaScriptCore)
Comment 1 Chris Dumez 2023-03-28 22:07:23 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12096
Comment 2 EWS 2023-03-29 08:24:46 PDT
Committed 262274@main (ea7b758f5d2e): <https://commits.webkit.org/262274@main>

Reviewed commits have been landed. Closing PR #12096 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-03-29 08:25:15 PDT
<rdar://problem/107368542>