xo-alloc / xo-object: utest coverage + assorted bugfixes
This commit is contained in:
parent
2048de70f3
commit
bd00826448
34 changed files with 1069 additions and 326 deletions
22
xo-alloc/src/alloc/generation.cpp
Normal file
22
xo-alloc/src/alloc/generation.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* generation.cpp
|
||||
*
|
||||
* author: Roland Conybeare, Aug 2025
|
||||
*/
|
||||
|
||||
#include "generation.hpp"
|
||||
|
||||
namespace xo {
|
||||
namespace gc {
|
||||
const char * gen2str(generation x) {
|
||||
switch (x) {
|
||||
case generation::nursery: return "nursery";
|
||||
case generation::tenured: return "tenured";
|
||||
case generation::N: break;
|
||||
}
|
||||
return "?generation";
|
||||
}
|
||||
|
||||
} /*namespace gc*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* generation.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue