From c68dfd2ac45e16085e4b75a87d299e151a7da04a Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 8 Jan 2019 14:43:41 +0000 Subject: [PATCH] Use keyword argument interface to avoid underpromotion of arguments. Copied from Perforce Change: 195911 --- mps/test/function/167.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/mps/test/function/167.c b/mps/test/function/167.c index dff024b0fbd..aeebec198e5 100644 --- a/mps/test/function/167.c +++ b/mps/test/function/167.c @@ -16,8 +16,6 @@ END_HEADER #include "mpscmvff.h" #include "mpsavm.h" -#define MVFF_HI_PARMS EXTEND,AVGSIZE,MPS_PF_ALIGN,1,1,0 - mps_arena_t arena; #define MAXOBJS (10000) @@ -45,9 +43,15 @@ static void test(void) cdie(mps_thread_reg(&thread, arena), "register thread"); - cdie( - mps_pool_create(&poolhi, arena, mps_class_mvff(), MVFF_HI_PARMS), - "create high pool"); + MPS_ARGS_BEGIN(args) { + MPS_ARGS_ADD(args, MPS_KEY_EXTEND_BY, EXTEND); + MPS_ARGS_ADD(args, MPS_KEY_MEAN_SIZE, AVGSIZE); + MPS_ARGS_ADD(args, MPS_KEY_MVFF_ARENA_HIGH, 1); + MPS_ARGS_ADD(args, MPS_KEY_MVFF_SLOT_HIGH, 1); + MPS_ARGS_ADD(args, MPS_KEY_MVFF_FIRST_FIT, 0); + cdie(mps_pool_create_k(&poolhi, arena, mps_class_mvff(), args), + "create high pool"); + } MPS_ARGS_END(args); MPS_ARGS_BEGIN(args) { MPS_ARGS_ADD(args, MPS_KEY_EXTEND_BY, EXTEND);