xo-alloc2: header reorg + DX1Collector utest
This commit is contained in:
parent
df8892442c
commit
0496bd12e6
19 changed files with 64 additions and 577 deletions
|
|
@ -9,8 +9,10 @@ set(SELF_SRCS
|
|||
IAllocator_DArena.cpp
|
||||
|
||||
ICollector_Any.cpp
|
||||
|
||||
IGCObject_Any.cpp
|
||||
|
||||
DX1Collector.cpp
|
||||
|
||||
)
|
||||
|
||||
xo_add_shared_library4(${SELF_LIB} ${PROJECT_NAME}Targets ${PROJECT_VERSION} 1 ${SELF_SRCS})
|
||||
|
|
|
|||
|
|
@ -192,6 +192,31 @@ namespace xo {
|
|||
other.last_error_ = AllocatorError();
|
||||
}
|
||||
|
||||
DArena &
|
||||
DArena::operator=(DArena && other)
|
||||
{
|
||||
config_ = other.config_;
|
||||
page_z_ = other.page_z_;
|
||||
lo_ = other.lo_;
|
||||
committed_z_ = other.committed_z_;
|
||||
free_ = other.free_;
|
||||
limit_ = other.limit_;
|
||||
hi_ = other.hi_;
|
||||
error_count_ = other.error_count_;
|
||||
last_error_ = other.last_error_;
|
||||
|
||||
other.config_ = ArenaConfig();
|
||||
other.lo_ = nullptr;
|
||||
other.committed_z_ = 0;
|
||||
other.free_ = nullptr;
|
||||
other.limit_ = nullptr;
|
||||
other.hi_ = nullptr;
|
||||
other.error_count_ = 0;
|
||||
other.last_error_ = AllocatorError();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
DArena::~DArena()
|
||||
{
|
||||
if (lo_) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "ICollector_Any.hpp"
|
||||
#include "gc/ICollector_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* @author Roland Conybeare, Dec 2025
|
||||
**/
|
||||
|
||||
#include "IGCObject_Any.hpp"
|
||||
#include "gc/IGCObject_Any.hpp"
|
||||
#include <iostream>
|
||||
|
||||
namespace xo {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue