committed by
GitHub
parent
c7736a2def
commit
333190a27d
@@ -17,6 +17,7 @@
|
|||||||
#include "sizeclasstable.h"
|
#include "sizeclasstable.h"
|
||||||
#include "slab.h"
|
#include "slab.h"
|
||||||
|
|
||||||
|
#include <array>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
namespace snmalloc
|
namespace snmalloc
|
||||||
@@ -513,14 +514,9 @@ namespace snmalloc
|
|||||||
* A stub Remote object that will always be the head of this list;
|
* A stub Remote object that will always be the head of this list;
|
||||||
* never taken for further processing.
|
* never taken for further processing.
|
||||||
*/
|
*/
|
||||||
Remote head;
|
Remote head{};
|
||||||
|
|
||||||
Remote* last;
|
Remote* last{&head};
|
||||||
|
|
||||||
RemoteList()
|
|
||||||
{
|
|
||||||
clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void clear()
|
void clear()
|
||||||
{
|
{
|
||||||
@@ -543,8 +539,8 @@ namespace snmalloc
|
|||||||
* need to dispatch everything, we can check if we are a real allocator
|
* need to dispatch everything, we can check if we are a real allocator
|
||||||
* and lazily provide a real allocator.
|
* and lazily provide a real allocator.
|
||||||
*/
|
*/
|
||||||
int64_t capacity = 0;
|
int64_t capacity{0};
|
||||||
RemoteList list[REMOTE_SLOTS];
|
std::array<RemoteList, REMOTE_SLOTS> list{};
|
||||||
|
|
||||||
/// Used to find the index into the array of queues for remote
|
/// Used to find the index into the array of queues for remote
|
||||||
/// deallocation
|
/// deallocation
|
||||||
|
|||||||
Reference in New Issue
Block a user