2024-11-16 18:58:28 -03:00
|
|
|
/*
|
|
|
|
|
* 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!
|
2024-12-27 20:47:33 -03:00
|
|
|
thread_local GC::Heap heap(nullptr, [](auto&) { });
|
2024-11-16 18:58:28 -03:00
|
|
|
return heap;
|
|
|
|
|
}
|