Bug 278260
| Summary: | ENABLE_MALLOC_HEAP_BREAKDOWN has compilation problems when turned on | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Nathan Solomon <nathan_solomon> |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Minor | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | macOS 15 | ||
Nathan Solomon
Summary:
When turning on ENABLE_MALLOC_HEAP_BREAKDOWN, Webkit fails to compile and has many errors.
Steps To Reproduce:
1. Set ENABLE_MALLOC_HEAP_BREAKDOWN to 1 (/OpenSource/WebKitBuild/Debug/usr/local/include/wtf/PlatformEnable.h)
2. Set BENABLE_MALLOC_HEAP_BREAKDOWN to 1 (/OpenSource/Source/bmalloc/bmalloc/BPlatform.h)
Compile with make d | filter-build-webkit
Results:
Here are some of the compiler errors:
In file included from /Users/nathansolomon/workspace/OpenSource/WebKitBuild/Debug/DerivedSources/WebCore/unified-sources/UnifiedSource105.cpp:3:
/Users/nathansolomon/workspace/OpenSource/Source/WebCore/animation/FrameRateAligner.cpp:30:1: error: use of undeclared identifier 'FrameRateAlignerMalloc'; did you mean 'FrameRateAligner'?
30 | DEFINE_ALLOCATOR_WITH_HEAP_IDENTIFIER(FrameRateAligner);
In file included from /Users/nathansolomon/workspace/OpenSource/WebKitBuild/Debug/DerivedSources/WebCore/unified-sources/UnifiedSource105.cpp:1:
In file included from /Users/nathansolomon/workspace/OpenSource/Source/WebCore/WebCorePrefix.h:164:
In file included from /Users/nathansolomon/workspace/OpenSource/WebKitBuild/Debug/usr/local/include/wtf/FastMalloc.h:25:
/Users/nathansolomon/workspace/OpenSource/WebKitBuild/Debug/usr/local/include/wtf/DebugHeap.h:81:21: note: expanded from macro 'DEFINE_ALLOCATOR_WITH_HEAP_IDENTIFIER'
81 | WTF::DebugHeap& Type##Malloc::debugHeap() \
<scratch space>:180:1: note: expanded from here
180 | FrameRateAlignerMalloc
And more.
Most are related to a missing DECLARE_ALLOCATOR_WITH_HEAP_IDENTIFIER statement and due to a missing #include "AnimationMalloc.h” in AcceleratedTimeLine.h
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/134090283>
Nathan Solomon
Pull request: https://github.com/WebKit/WebKit/pull/32329