Skip to content

Commit

Permalink
Rename doug_lea_allocator
Browse files Browse the repository at this point in the history
common -> g_common_allocator
  • Loading branch information
Xottab-DUTY committed Dec 24, 2017
1 parent e86e49e commit 4fa8d8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/xrCore/Memory/doug_lea_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class XRCORE_API doug_lea_allocator
void* m_dl_arena;
};

extern doug_lea_allocator common;
extern doug_lea_allocator g_common_allocator;

template <class T, doug_lea_allocator& _impl = common>
class doug_lea_alloc
Expand Down
4 changes: 2 additions & 2 deletions src/xrMisc/xrMisc_xrMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ void operator delete[](void* p) throw() { Memory.mem_free(p); }
#ifdef USE_ARENA_ALLOCATOR
constexpr static const u32 s_arena_size = 256 * 1024 * 1024;
static char s_fake_array[s_arena_size];
doug_lea_allocator common(s_fake_array, s_arena_size, "common");
doug_lea_allocator g_common_allocator(s_fake_array, s_arena_size, "common");
#else
doug_lea_allocator common(nullptr, 0, "common");
doug_lea_allocator g_common_allocator(nullptr, 0, "common");
#endif
#endif // USE_DOUG_LEA_ALLOCATOR

0 comments on commit 4fa8d8f

Please sign in to comment.