mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-09 01:31:02 +00:00
16 lines
313 B
C++
16 lines
313 B
C++
|
|
/*
|
||
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "TestHeap.h"
|
||
|
|
#include <LibGC/Heap.h>
|
||
|
|
|
||
|
|
GC::Heap& test_gc_heap()
|
||
|
|
{
|
||
|
|
// FIXME: The GC heap should become thread aware!
|
||
|
|
thread_local GC::Heap heap(nullptr, [](auto&) {});
|
||
|
|
return heap;
|
||
|
|
}
|