diff options
| author | Richard Brooksby | 2012-05-01 16:27:19 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-05-01 16:27:19 +0100 |
| commit | cf80843764eb1c7b7a6eb8153ef23613112fc0bb (patch) | |
| tree | 23accba599c4ca2c52d767b5bf56caf36a40367f /mps/code/amcss.c | |
| parent | c3966f7c057ac921ff694a97cb924240e3acbad8 (diff) | |
| parent | 1c2174afa75e0779e674910b3df187027802ab8d (diff) | |
| download | emacs-cf80843764eb1c7b7a6eb8153ef23613112fc0bb.tar.gz emacs-cf80843764eb1c7b7a6eb8153ef23613112fc0bb.zip | |
Merging branch/2012-03-27/longest back to master, removing the assumption that "unsigned long" is the longest integer type, or that it is large enough to hold a pointer.
Copied from Perforce
Change: 178072
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/amcss.c')
| -rw-r--r-- | mps/code/amcss.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mps/code/amcss.c b/mps/code/amcss.c index 0590f81c0c7..7055bf94b70 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c | |||
| @@ -86,7 +86,7 @@ static void report(mps_arena_t arena) | |||
| 86 | nCollsStart += 1; | 86 | nCollsStart += 1; |
| 87 | printf("\n{\n Collection %d started. Because:\n", nCollsStart); | 87 | printf("\n{\n Collection %d started. Because:\n", nCollsStart); |
| 88 | printf(" %s\n", mps_message_gc_start_why(arena, message)); | 88 | printf(" %s\n", mps_message_gc_start_why(arena, message)); |
| 89 | printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); | 89 | printf(" clock: %"PRIuLONGEST"\n", (ulongest_t)mps_message_clock(arena, message)); |
| 90 | break; | 90 | break; |
| 91 | } | 91 | } |
| 92 | case mps_message_type_gc(): { | 92 | case mps_message_type_gc(): { |
| @@ -98,10 +98,10 @@ static void report(mps_arena_t arena) | |||
| 98 | not_condemned = mps_message_gc_not_condemned_size(arena, message); | 98 | not_condemned = mps_message_gc_not_condemned_size(arena, message); |
| 99 | 99 | ||
| 100 | printf("\n Collection %d finished:\n", nCollsDone); | 100 | printf("\n Collection %d finished:\n", nCollsDone); |
| 101 | printf(" live %lu\n", (unsigned long)live); | 101 | printf(" live %"PRIuLONGEST"\n", (ulongest_t)live); |
| 102 | printf(" condemned %lu\n", (unsigned long)condemned); | 102 | printf(" condemned %"PRIuLONGEST"\n", (ulongest_t)condemned); |
| 103 | printf(" not_condemned %lu\n", (unsigned long)not_condemned); | 103 | printf(" not_condemned %"PRIuLONGEST"\n", (ulongest_t)not_condemned); |
| 104 | printf(" clock: %lu\n", (unsigned long)mps_message_clock(arena, message)); | 104 | printf(" clock: %"PRIuLONGEST"\n", (ulongest_t)mps_message_clock(arena, message)); |
| 105 | printf("}\n"); | 105 | printf("}\n"); |
| 106 | 106 | ||
| 107 | if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { | 107 | if(condemned > (gen1SIZE + gen2SIZE + (size_t)128) * 1024) { |