alloc: de-static external_pointer

Like alloc_size, this will require amplification internally.

This patch also restores performance to the status quo ante; Clang can once
again see enough to generate the same code as it did before de-static-ing
alloc_size.
This commit is contained in:
Nathaniel Filardo
2020-12-15 17:46:40 +00:00
committed by Matthew Parkinson
parent 1042fc908a
commit f295a3f191
4 changed files with 14 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ namespace test
size_t size = *external_ptr;
size_t offset = (size >> 4) * (rand & 15);
void* interior_ptr = pointer_offset(external_ptr, offset);
void* calced_external = Alloc::external_pointer(interior_ptr);
void* calced_external = alloc->external_pointer(interior_ptr);
if (calced_external != external_ptr)
abort();
}