xo-alloc / xo-object: utest coverage + assorted bugfixes
This commit is contained in:
parent
8b622e6999
commit
a6e4430825
21 changed files with 861 additions and 284 deletions
22
src/alloc/generation.cpp
Normal file
22
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