diff options
Diffstat (limited to 'mps/code/amcss.c')
| -rw-r--r-- | mps/code/amcss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mps/code/amcss.c b/mps/code/amcss.c index 7055bf94b70..b1a0d5e4e6b 100644 --- a/mps/code/amcss.c +++ b/mps/code/amcss.c | |||
| @@ -38,7 +38,7 @@ static mps_gen_param_s testChain[genCOUNT] = { | |||
| 38 | 38 | ||
| 39 | 39 | ||
| 40 | /* objNULL needs to be odd so that it's ignored in exactRoots. */ | 40 | /* objNULL needs to be odd so that it's ignored in exactRoots. */ |
| 41 | #define objNULL ((mps_addr_t)0xDECEA5ED) | 41 | #define objNULL ((mps_addr_t)MPS_WORD_CONST(0xDECEA5ED)) |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | static mps_pool_t pool; | 44 | static mps_pool_t pool; |
| @@ -210,7 +210,7 @@ static void *test(void *arg, size_t s) | |||
| 210 | ramping = 1; | 210 | ramping = 1; |
| 211 | objs = 0; | 211 | objs = 0; |
| 212 | while (collections < collectionsCOUNT) { | 212 | while (collections < collectionsCOUNT) { |
| 213 | unsigned long c; | 213 | mps_word_t c; |
| 214 | size_t r; | 214 | size_t r; |
| 215 | 215 | ||
| 216 | c = mps_collections(arena); | 216 | c = mps_collections(arena); |
| @@ -221,7 +221,7 @@ static void *test(void *arg, size_t s) | |||
| 221 | printf("%lu objects (mps_collections says: %lu)\n", objs, c); | 221 | printf("%lu objects (mps_collections says: %lu)\n", objs, c); |
| 222 | 222 | ||
| 223 | /* test mps_arena_has_addr */ | 223 | /* test mps_arena_has_addr */ |
| 224 | { | 224 | if (sizeof(mps_addr_t) == 4) { /* @@@@ W3I6MV This test is bogus for 64-bit address space. */ |
| 225 | size_t hitRatio; | 225 | size_t hitRatio; |
| 226 | int hitsWanted = 4; /* aim for 4 hits (on average) */ | 226 | int hitsWanted = 4; /* aim for 4 hits (on average) */ |
| 227 | /* [Note: The for-loop condition used to be "i < 4 * hitRatio", | 227 | /* [Note: The for-loop condition used to be "i < 4 * hitRatio", |