Skip to content

Commit

Permalink
cleanup mem.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
idealvin committed Jan 13, 2024
1 parent 76dbb56 commit d7e40f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,11 @@ class alignas(co::cache_line_size) ThreadAlloc {
};


static int g_nifty_counter;
struct alignas(Root) { char _[sizeof(Root)]; } g_root_buf;
struct alignas(co::cache_line_size) { char _[sizeof(Root)]; } g_root_buf;
Root& g_root = *(Root*)&g_root_buf;
static GlobalAlloc* g_ga;
__thread ThreadAlloc* g_ta;
static int g_nifty_counter;

Initializer::Initializer() {
if (g_nifty_counter++ == 0) {
Expand Down

0 comments on commit d7e40f5

Please sign in to comment.