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

Mps_message_type_collection_stats changed to mps_message_type_gc

Copied from Perforce
 Change: 20574
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Tucker 1999-02-19 15:18:54 +00:00
parent 9d510fa0de
commit abaed65b29
2 changed files with 12 additions and 12 deletions

View file

@ -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) */

View file

@ -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);