History squashed from internal development. Internal history has commit hash: e27a0e485c44a5003a802de2661ce3b21e120316
28 lines
290 B
C++
28 lines
290 B
C++
#pragma once
|
|
|
|
#include "../ds/mpmcstack.h"
|
|
#include "allocconfig.h"
|
|
|
|
namespace snmalloc
|
|
{
|
|
enum SlabKind
|
|
{
|
|
Fresh = 0,
|
|
Large,
|
|
Medium,
|
|
Super
|
|
};
|
|
|
|
class Baseslab
|
|
{
|
|
protected:
|
|
SlabKind kind;
|
|
|
|
public:
|
|
SlabKind get_kind()
|
|
{
|
|
return kind;
|
|
}
|
|
};
|
|
}
|