Replace "AAL" type with "Aal" to parallel "Pal"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user