#include "include/cppgc/explicit-management.h"
#include <algorithm>
#include <tuple>
#include "src/heap/cppgc/heap-base.h"
#include "src/heap/cppgc/heap-object-header.h"
#include "src/heap/cppgc/heap-page.h"
#include "src/heap/cppgc/memory.h"
#include "src/heap/cppgc/object-view.h"
namespace cppgc {
namespace internal {
namespace {
bool InGC(HeapHandle& heap_handle) { … }
}
void ExplicitManagementImpl::FreeUnreferencedObject(HeapHandle& heap_handle,
void* object) { … }
namespace {
bool Grow(HeapObjectHeader& header, BasePage& base_page, size_t new_size,
size_t size_delta) { … }
bool Shrink(HeapObjectHeader& header, BasePage& base_page, size_t new_size,
size_t size_delta) { … }
}
bool ExplicitManagementImpl::Resize(void* object, size_t new_object_size) { … }
}
}