#include "src/heap/cppgc/process-heap.h"
#include <algorithm>
#include <vector>
#include "src/base/lazy-instance.h"
#include "src/base/logging.h"
#include "src/base/platform/mutex.h"
#include "src/heap/cppgc/heap-base.h"
#include "src/heap/cppgc/page-memory.h"
namespace cppgc {
namespace internal {
v8::base::LazyMutex g_process_mutex = …;
namespace {
v8::base::LazyMutex g_heap_registry_mutex = …;
HeapRegistry::Storage& GetHeapRegistryStorage() { … }
}
void HeapRegistry::RegisterHeap(HeapBase& heap) { … }
void HeapRegistry::UnregisterHeap(HeapBase& heap) { … }
HeapBase* HeapRegistry::TryFromManagedPointer(const void* needle) { … }
const HeapRegistry::Storage& HeapRegistry::GetRegisteredHeapsForTesting() { … }
}
}