mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-19 08:11:58 +00:00
29 lines
545 B
C++
29 lines
545 B
C++
/*
|
|
* Copyright (c) 2025, Andreas Kling <andreas@ladybird.org>
|
|
* Copyright (c) 2026, Luke Wilde <luke@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGC/Heap.h>
|
|
#include <LibGC/RootHashTable.h>
|
|
|
|
namespace GC {
|
|
|
|
RootHashTableBase::RootHashTableBase()
|
|
: RootHashTableBase(Heap::the())
|
|
{
|
|
}
|
|
|
|
RootHashTableBase::RootHashTableBase(Heap& heap)
|
|
: m_heap(&heap)
|
|
{
|
|
m_heap->did_create_root_hash_table({}, *this);
|
|
}
|
|
|
|
RootHashTableBase::~RootHashTableBase()
|
|
{
|
|
m_heap->did_destroy_root_hash_table({}, *this);
|
|
}
|
|
|
|
}
|