diff --git a/mps/qa/function/150.c b/mps/qa/function/150.c index 09e63ec8028..6721b06a7c6 100644 --- a/mps/qa/function/150.c +++ b/mps/qa/function/150.c @@ -1,6 +1,6 @@ /* TEST_HEADER - id = $HopeName$ + id = $HopeName: MMQA_test_function!150.c(trunk.2) $ summary = finalization and collection stats language = c link = testlib.o rankfmt.o @@ -96,11 +96,11 @@ static void qpoll(mps_addr_t *ref, int faction) { static void process_stats(mps_message_t message) { report("collect", "true"); report("collect_live", "%ld", - mps_message_collection_stats_live_size(space, message)); + mps_message_gc_live_size(space, message)); report("collect_condemned", "%ld", - mps_message_collection_stats_condemned_size(space, message)); + mps_message_gc_condemned_size(space, message)); report("collect_not_condemned", "%ld", - mps_message_collection_stats_not_condemned_size(space, message)); + mps_message_gc_not_condemned_size(space, message)); mps_message_discard(space, message); } @@ -111,7 +111,7 @@ static void messagepoll(mps_addr_t *ref, int faction) { final_count -=1; process_mess(message, faction, ref); } - if (mps_message_get(&message, space, mps_message_type_collection_stats())) { + if (mps_message_get(&message, space, mps_message_type_gc())) { process_stats(message); } } @@ -170,7 +170,7 @@ static void test(void) { "create ap"); mps_message_type_enable(space, mps_message_type_finalization()); - mps_message_type_enable(space, mps_message_type_collection_stats()); + mps_message_type_enable(space, mps_message_type_gc()); /* register loads of objects for finalization (1000*4) */ diff --git a/mps/qa/function/215.c b/mps/qa/function/215.c index 9ae3fb56490..3f81bf58ef3 100644 --- a/mps/qa/function/215.c +++ b/mps/qa/function/215.c @@ -1,6 +1,6 @@ /* TEST_HEADER - id = $HopeName$ + id = $HopeName: MMQA_test_function!215.c(trunk.2) $ summary = test of ramp allocation language = c link = testlib.o rankfmt.o @@ -89,7 +89,7 @@ static void test(void) { mps_ap_create(&apamc, poolamc, MPS_RANK_EXACT), "create ap"); - mps_message_type_enable(arena, mps_message_type_collection_stats()); + mps_message_type_enable(arena, mps_message_type_gc()); inramp = 0; @@ -130,12 +130,12 @@ static void test(void) { rsize = 0; } } - if(mps_message_get(&message, arena, mps_message_type_collection_stats())) { + if(mps_message_get(&message, arena, mps_message_type_gc())) { unsigned long live, condemned, notCondemned; - live = mps_message_collection_stats_live_size(arena, message); - condemned = mps_message_collection_stats_condemned_size(arena, message); + live = mps_message_gc_live_size(arena, message); + condemned = mps_message_gc_condemned_size(arena, message); notCondemned = - mps_message_collection_stats_not_condemned_size(arena, message); + mps_message_gc_not_condemned_size(arena, message); comment("Collection: live=%ld, condemned=%ld, not condemned = %ld", live, condemned, notCondemned); mps_message_discard(arena, message);