proxygen
folly::SysArena Class Reference

#include <Arena.h>

Inheritance diagram for folly::SysArena:
folly::Arena< SysAllocator< void > >

Public Member Functions

 SysArena (size_t minBlockSize=kDefaultMinBlockSize, size_t sizeLimit=kNoSizeLimit, size_t maxAlign=kDefaultMaxAlign)
 
- Public Member Functions inherited from folly::Arena< SysAllocator< void > >
 Arena (const SysAllocator< void > &alloc, size_t minBlockSize=kDefaultMinBlockSize, size_t sizeLimit=kNoSizeLimit, size_t maxAlign=kDefaultMaxAlign)
 
 Arena (const Arena &)=delete
 
 Arena (Arena &&)=delete
 
 ~Arena ()
 
void * allocate (size_t size)
 
void deallocate (void *, size_t=0)
 
void merge (Arena &&other)
 
size_t totalSize () const
 
size_t bytesUsed () const
 
Arenaoperator= (const Arena &)=delete
 
Arenaoperator= (Arena &&)=delete
 

Additional Inherited Members

- Static Public Attributes inherited from folly::Arena< SysAllocator< void > >
static constexpr size_t kDefaultMinBlockSize
 
static constexpr size_t kNoSizeLimit
 
static constexpr size_t kDefaultMaxAlign
 
static constexpr size_t kBlockOverhead
 

Detailed Description

Arena that uses the system allocator (malloc / free)

Definition at line 234 of file Arena.h.

Constructor & Destructor Documentation

folly::SysArena::SysArena ( size_t  minBlockSize = kDefaultMinBlockSize,
size_t  sizeLimit = kNoSizeLimit,
size_t  maxAlign = kDefaultMaxAlign 
)
inlineexplicit

Definition at line 236 of file Arena.h.

References folly::Arena< Alloc >::minBlockSize().

240  : Arena<SysAllocator<void>>({}, minBlockSize, sizeLimit, maxAlign) {}

The documentation for this class was generated from the following file: