mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-22 23:04:12 -07:00
Mps br/timing: (tabs) amcss.c
Copied from Perforce Change: 166670 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
5b0e9d7df9
commit
1be911f2ab
1 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue