Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions Source/JavaScriptCore/wasm/WasmMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ class Memory final : public RefCountedAndCanMakeWeakPtr<Memory> {

void registerInstance(JSWebAssemblyInstance&);

// FIXME: Remove this check when CHECK_REF_COUNTED_LIFECYCLE is enabled for Bun
#if USE(BUN_JSC_ADDITIONS)
void checkLifetime() { }
#else
void checkLifetime() { ASSERT(!refCountDebugger().deletionHasBegun()); }
#endif

static constexpr ptrdiff_t offsetOfHandle() { return OBJECT_OFFSETOF(Memory, m_handle); }

Expand Down
5 changes: 1 addition & 4 deletions Source/WTF/wtf/RefCountDebugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@

namespace WTF {

// FIXME: Enable CHECK_REF_COUNTED_LIFECYCLE for Bun
#if USE(BUN_JSC_ADDITIONS)
#define CHECK_REF_COUNTED_LIFECYCLE 0
#elif ASSERT_ENABLED || ENABLE(SECURITY_ASSERTIONS)
#if ASSERT_ENABLED || ENABLE(SECURITY_ASSERTIONS)
#define CHECK_REF_COUNTED_LIFECYCLE 1
#else
#define CHECK_REF_COUNTED_LIFECYCLE 0
Expand Down