This commit is contained in:
Matthew Parkinson
2020-02-26 21:24:02 +00:00
parent c1c8a7bfee
commit be47aea0c8
2 changed files with 27 additions and 16 deletions

View File

@@ -26,17 +26,11 @@ int main()
{
setup();
MemoryProviderStateMixin<DefaultPal> mp;
// 28 is large enough to produce a nested allocator.
// It is also large enough for the example to run in.
// For 1MiB superslabs, SUPERSLAB_BITS + 4 is not big enough for the example.
auto a = ThreadAlloc::get();
for (size_t i = 0; i < 1000; i++)
{
auto r1 = a->alloc(100);
auto r1 = a->alloc(i);
a->dealloc(r1);
}