Replace "AAL" type with "Aal" to parallel "Pal"

This commit is contained in:
Nathaniel Filardo
2019-12-04 16:36:55 +00:00
parent 4d6759aca4
commit ef40f1cf1d
6 changed files with 9 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ namespace snmalloc
namespace snmalloc
{
using AAL = AAL_Generic<AAL_Arch>;
using Aal = AAL_Generic<AAL_Arch>;
} // namespace snmalloc
#if defined(_MSC_VER) && defined(SNMALLOC_VA_BITS_32)

View File

@@ -13,7 +13,7 @@ namespace snmalloc
FlagLock(std::atomic_flag& lock) : lock(lock)
{
while (lock.test_and_set(std::memory_order_acquire))
AAL::pause();
Aal::pause();
}
~FlagLock()

View File

@@ -70,7 +70,7 @@ namespace snmalloc
if (next != nullptr)
{
front = next;
AAL::prefetch(&(next->next));
Aal::prefetch(&(next->next));
assert(front);
std::atomic_thread_fence(std::memory_order_acquire);
invariant();

View File

@@ -66,7 +66,7 @@ namespace snmalloc
{
CurrentMaxPair count;
CurrentMaxPair slab_count;
uint64_t time = AAL::tick();
uint64_t time = Aal::tick();
uint64_t ticks = 0;
double online_average = 0;
@@ -83,7 +83,7 @@ namespace snmalloc
void addToRunningAverage()
{
uint64_t now = AAL::tick();
uint64_t now = Aal::tick();
if (slab_count.current != 0)
{

View File

@@ -162,7 +162,7 @@ namespace snmalloc
while (address_cast(e->load(std::memory_order_relaxed)) ==
LOCKED_ENTRY)
{
AAL::pause();
Aal::pause();
}
value = e->load(std::memory_order_acquire);
}

View File

@@ -31,18 +31,18 @@ private:
auto prev = ready.fetch_add(1);
if (prev + 1 == cores)
{
start = AAL::tick();
start = Aal::tick();
flag = true;
}
while (!flag)
AAL::pause();
Aal::pause();
f(id);
prev = complete.fetch_add(1);
if (prev + 1 == cores)
{
end = AAL::tick();
end = Aal::tick();
}
}