xo-object2: utest: ++ allocation in collector utest
This commit is contained in:
parent
6bd33bd900
commit
3f1470f938
18 changed files with 196 additions and 26 deletions
|
|
@ -190,12 +190,18 @@ namespace xo {
|
|||
**/
|
||||
value_type sub_alloc(size_type z, bool complete_flag);
|
||||
|
||||
/** alloc copy of @p src **/
|
||||
value_type alloc_copy(value_type src);
|
||||
|
||||
/** capture error information: advance error count + set last_error **/
|
||||
void capture_error(error err,
|
||||
size_type target_z = 0) const;
|
||||
|
||||
/** alloc driver. shared by alloc(), super_alloc(), sub_alloc() **/
|
||||
value_type _alloc(std::size_t req_z, alloc_mode mode);
|
||||
value_type _alloc(std::size_t req_z,
|
||||
alloc_mode mode,
|
||||
typeseq tseq,
|
||||
uint32_t age);
|
||||
|
||||
/** expand committed space in arena @p d
|
||||
* to size at least @p z
|
||||
|
|
|
|||
|
|
@ -70,14 +70,10 @@ namespace xo {
|
|||
* @p complete_flag to true.
|
||||
**/
|
||||
static value_type sub_alloc(DArena &, size_type z, bool complete_flag);
|
||||
/** allocate copy of @p src in arena @p d. **/
|
||||
static value_type alloc_copy(DArena & d, value_type src);
|
||||
static void clear(DArena &);
|
||||
static void destruct_data(DArena &);
|
||||
|
||||
private:
|
||||
/** alloc driver. shared by alloc(), super_alloc(), sub_alloc() **/
|
||||
static value_type _alloc(DArena &,
|
||||
size_type z,
|
||||
DArena::alloc_mode mode);
|
||||
};
|
||||
|
||||
// template <>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue