diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-04 14:46:21 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-06-04 14:50:26 -0400 |
| commit | 08d54867148420da3bd7ce531beaeb34de975fcb (patch) | |
| tree | 0c0f0ef8f8629289472b7d86106d47aa4fea481d /test/pkmem.c | |
| parent | a9a0920f431c76f31157edd42c6d055b673ed12f (diff) | |
pkmem.h: chkpt: major refactor for ad-hoc buckets
Diffstat (limited to 'test/pkmem.c')
| -rw-r--r-- | test/pkmem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pkmem.c b/test/pkmem.c index 252428d..7614379 100644 --- a/test/pkmem.c +++ b/test/pkmem.c @@ -38,6 +38,7 @@ int main(int argc, char *argv[]) // pk_new_base { spinup_w_instr(); + pk_bucket_set_client_bucket(mt.bkt1); char *some_dang_string = (char*)pk_new_base(64, alignof(char*)); fprintf(stdout, "some_dang_string: %s: %p\n", some_dang_string, (void *)some_dang_string); pk_delete_base(some_dang_string, 64); @@ -64,9 +65,9 @@ int main(int argc, char *argv[]) if (zero_length_string != NULL) exit(1); if (strlen(three_length_string) != 2) exit(1); - if (mt.bkt1->allocs != 1) exit(1); + if (mt.bkt1->alloc_count != 1) exit(1); if (mt.bkt1->head != 3) exit(1); - if (mt.bkt1->lastEmptyBlockIndex != 0) exit(1); + if (mt.bkt1->block_head_r != 0) exit(1); PK_LOGV_INF("%s: %s\n", __FILE__, "handles zero-length alloc"); teardown(); |
