Remove globalconfig.h includes.

This commit is contained in:
Matthew Parkinson
2021-07-22 19:13:00 +01:00
committed by Matthew Parkinson
parent d6bae72b20
commit 0cfa8f2cff
6 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
#pragma once
#include "../ds/helpers.h"
#include "globalconfig.h"
#include "localalloc.h"
#if defined(SNMALLOC_EXTERNAL_THREAD_ALLOC)

View File

@@ -2,6 +2,7 @@
#include "../snmalloc_core.h"
#ifndef SNMALLOC_PROVIDE_OWN_CONFIG
# include "../mem/globalconfig.h"
// The default configuration for snmalloc is used if alternative not defined
namespace snmalloc
{

View File

@@ -3,6 +3,9 @@
// Core implementation of snmalloc independent of the configuration mode
#include "snmalloc_core.h"
// Default implementation of global state
#include "mem/globalconfig.h"
// The default configuration for snmalloc
namespace snmalloc
{

View File

@@ -1,4 +1,3 @@
#pragma once
#include "mem/globalalloc.h"
#include "mem/globalconfig.h"
#include "mem/globalalloc.h"

View File

@@ -1,5 +1,4 @@
#include "mem/fixedglobalconfig.h"
#include "mem/globalconfig.h"
#include "test/setup.h"
#include <iostream>

View File

@@ -3,6 +3,9 @@
// Specify using own
#define SNMALLOC_EXTERNAL_THREAD_ALLOC
#include "mem/globalconfig.h"
namespace snmalloc
{
using Alloc = snmalloc::LocalAllocator<snmalloc::Globals>;