From 1be911f2ab6bd178ff2162cbf37ff415eb276fa8 Mon Sep 17 00:00:00 2001 From: Richard Kistruck Date: Fri, 7 Nov 2008 13:37:23 +0000 Subject: [PATCH] Mps br/timing: (tabs) amcss.c Copied from Perforce Change: 166670 ServerID: perforce.ravenbrook.com --- mps/code/amcss.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/mps/code/amcss.c b/mps/code/amcss.c index 76a5088360f..d7946a74bcf 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c @@ -63,24 +63,24 @@ static void report(mps_arena_t arena) /* @@@@ is using these macros in a switch supported? */ case mps_message_type_gc(): { - size_t live, condemned, not_condemned; + size_t live, condemned, not_condemned; - live = mps_message_gc_live_size(arena, message); - condemned = mps_message_gc_condemned_size(arena, message); - not_condemned = mps_message_gc_not_condemned_size(arena, message); + live = mps_message_gc_live_size(arena, message); + condemned = mps_message_gc_condemned_size(arena, message); + not_condemned = mps_message_gc_not_condemned_size(arena, message); - printf("\nCollection %d finished:\n", ++nCollections); - printf("live %lu\n", (unsigned long)live); - printf("condemned %lu\n", (unsigned long)condemned); - printf("not_condemned %lu\n", (unsigned long)not_condemned); + printf("\nCollection %d finished:\n", ++nCollections); + printf("live %lu\n", (unsigned long)live); + printf("condemned %lu\n", (unsigned long)condemned); + printf("not_condemned %lu\n", (unsigned long)not_condemned); - if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { - /* When condemned size is larger than could happen in a gen 2 - * collection (discounting ramps, natch), guess that was a dynamic - * collection, and reset the commit limit, so it doesn't run out. */ - die(mps_arena_commit_limit_set(arena, 2 * testArenaSIZE), - "set limit"); - } + if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { + /* When condemned size is larger than could happen in a gen 2 + * collection (discounting ramps, natch), guess that was a dynamic + * collection, and reset the commit limit, so it doesn't run out. */ + die(mps_arena_commit_limit_set(arena, 2 * testArenaSIZE), + "set limit"); + } } break; case mps_message_type_gc_start(): @@ -215,9 +215,9 @@ static void *test(void *arg, size_t s) if (collections == collectionsCOUNT / 2) { unsigned long object_count = 0; mps_arena_park(arena); - mps_arena_formatted_objects_walk(arena, test_stepper, &object_count, 0); - mps_arena_release(arena); - printf("stepped on %lu objects.\n", object_count); + mps_arena_formatted_objects_walk(arena, test_stepper, &object_count, 0); + mps_arena_release(arena); + printf("stepped on %lu objects.\n", object_count); } if (collections == rampSwitch) { int begin_ramp = !ramping