1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-09 05:01:02 -08:00

Use mps_class_mvff_debug.

Copied from Perforce
 Change: 194866
This commit is contained in:
Gareth Rees 2018-08-02 14:26:20 +01:00
parent 967b61398d
commit 9008a02110
2 changed files with 6 additions and 5 deletions

View file

@ -34,7 +34,7 @@ static void test(void)
MPS_ARGS_BEGIN(args) {
MPS_ARGS_ADD(args, MPS_KEY_POOL_DEBUG_OPTIONS, &debugOpts);
die(mps_pool_create(&pool, arena, mps_class_mv_debug(), args),
die(mps_pool_create_k(&pool, arena, mps_class_mvff_debug(), args),
"create MVFF pool");
} MPS_ARGS_END(args);

View file

@ -31,16 +31,17 @@ static void test(void) {
MPS_ARGS_BEGIN(args) {
MPS_ARGS_ADD(args, MPS_KEY_POOL_DEBUG_OPTIONS, &debugOpts);
die(mps_pool_create_k(&pool, arena, mps_class_mv_debug(), args),
MPS_ARGS_ADD(args, MPS_KEY_ALIGN, 8);
die(mps_pool_create_k(&pool, arena, mps_class_mvff_debug(), args),
"create MVFF pool");
} MPS_ARGS_END(args);
die(mps_alloc(&a, pool, 63), "alloc a");
die(mps_alloc(&a, pool, 64), "alloc a");
c = a;
c += 63;
c += 64;
*c = 0;
mps_free(pool, a, 63);
mps_free(pool, a, 64);
mps_pool_destroy(pool);
mps_thread_dereg(thread);