Skip to content

Commit

Permalink
Add MALLOC_HEAP_BREAKDOWN option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Jul 28, 2024
1 parent 13bb88d commit 14ae461
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/WTF/wtf/text/StringImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ class STRING_IMPL_ALIGNMENT StringImplShape {
// Right now we use a mix of both, which makes code more confusing and has no benefit.

DECLARE_COMPACT_ALLOCATOR_WITH_HEAP_IDENTIFIER(StringImpl);

class StringImpl : private StringImplShape {
WTF_MAKE_NONCOPYABLE(StringImpl);
WTF_MAKE_FAST_COMPACT_ALLOCATED_WITH_HEAP_IDENTIFIER(StringImpl);
WTF_MAKE_FAST_COMPACT_ALLOCATED_WITH_HEAP_IDENTIFIER(WTF::StringImpl);

friend class AtomStringImpl;
friend class JSC::LLInt::Data;
Expand Down
8 changes: 7 additions & 1 deletion Source/cmake/OptionsJSCOnly.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ if (USE_BUN_JSC_ADDITIONS)
if (WIN32)
SET_AND_EXPOSE_TO_BUILD(JS_NO_EXPORT 1)
endif()
WEBKIT_OPTION_END()
WEBKIT_OPTION_BEGIN()
WEBKIT_OPTION_DEFINE(ENABLE_MALLOC_HEAP_BREAKDOWN "Whether to enable MALLOC_HEAP_BREAKDOWN" PUBLIC OFF)

if(ENABLE_MALLOC_HEAP_BREAKDOWN)
SET_AND_EXPOSE_TO_BUILD(ENABLE_MALLOC_HEAP_BREAKDOWN 1)
endif()

endif ()
WEBKIT_OPTION_END()

WEBKIT_OPTION_BEGIN()
Expand Down

0 comments on commit 14ae461

Please sign in to comment.