diff options
| author | Richard Brooksby | 2013-02-20 13:35:23 +0000 |
|---|---|---|
| committer | Richard Brooksby | 2013-02-20 13:35:23 +0000 |
| commit | a622cdfc079e848852e8ef43ac1b36e36d91ef4a (patch) | |
| tree | 0e082abaece3eed40f8c6510791c729d8002a94d /mps/code | |
| parent | 88ad39840e7b72ec28489671a51201a8623dd599 (diff) | |
| download | emacs-a622cdfc079e848852e8ef43ac1b36e36d91ef4a.tar.gz emacs-a622cdfc079e848852e8ef43ac1b36e36d91ef4a.zip | |
Minor tweaks to allow amcssth test to build under lii3gc at least.
Copied from Perforce
Change: 180963
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/amcssth.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/mps/code/amcssth.c b/mps/code/amcssth.c index 81eb0ad9b0d..a81be4961d4 100644 --- a/mps/code/amcssth.c +++ b/mps/code/amcssth.c | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #define _POSIX_C_SOURCE 199309L | 10 | #define _POSIX_C_SOURCE 199309L |
| 11 | 11 | ||
| 12 | #include "fmtdy.h" | 12 | #include "fmtdy.h" |
| 13 | #include "fmtdytst.h" | ||
| 13 | #include "testlib.h" | 14 | #include "testlib.h" |
| 14 | #include "mpscamc.h" | 15 | #include "mpscamc.h" |
| 15 | #include "mpsavm.h" | 16 | #include "mpsavm.h" |
| @@ -45,13 +46,6 @@ static mps_pool_t pool; | |||
| 45 | static mps_addr_t exactRoots[exactRootsCOUNT]; | 46 | static mps_addr_t exactRoots[exactRootsCOUNT]; |
| 46 | static mps_addr_t ambigRoots[ambigRootsCOUNT]; | 47 | static mps_addr_t ambigRoots[ambigRootsCOUNT]; |
| 47 | 48 | ||
| 48 | mps_arena_t arena; | ||
| 49 | mps_fmt_t format; | ||
| 50 | mps_chain_t chain; | ||
| 51 | mps_root_t exactRoot, ambigRoot; | ||
| 52 | unsigned long objs = 0; | ||
| 53 | |||
| 54 | |||
| 55 | /* report - report statistics from any terminated GCs */ | 49 | /* report - report statistics from any terminated GCs */ |
| 56 | 50 | ||
| 57 | static void report(mps_arena_t arena) | 51 | static void report(mps_arena_t arena) |
| @@ -82,6 +76,13 @@ static void report(mps_arena_t arena) | |||
| 82 | } | 76 | } |
| 83 | 77 | ||
| 84 | 78 | ||
| 79 | mps_arena_t arena; | ||
| 80 | mps_fmt_t format; | ||
| 81 | mps_chain_t chain; | ||
| 82 | mps_root_t exactRoot, ambigRoot; | ||
| 83 | unsigned long objs = 0; | ||
| 84 | |||
| 85 | |||
| 85 | /* make -- create one new object */ | 86 | /* make -- create one new object */ |
| 86 | 87 | ||
| 87 | static mps_addr_t make(mps_ap_t ap) | 88 | static mps_addr_t make(mps_ap_t ap) |
| @@ -258,6 +259,8 @@ static void *test(void *arg, size_t s) | |||
| 258 | 259 | ||
| 259 | churn(ap); | 260 | churn(ap); |
| 260 | 261 | ||
| 262 | r = (size_t)rnd(); | ||
| 263 | |||
| 261 | if (r % initTestFREQ == 0) | 264 | if (r % initTestFREQ == 0) |
| 262 | *(int*)busy_init = -1; /* check that the buffer is still there */ | 265 | *(int*)busy_init = -1; /* check that the buffer is still there */ |
| 263 | 266 | ||