aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2013-02-20 13:35:23 +0000
committerRichard Brooksby2013-02-20 13:35:23 +0000
commita622cdfc079e848852e8ef43ac1b36e36d91ef4a (patch)
tree0e082abaece3eed40f8c6510791c729d8002a94d /mps/code
parent88ad39840e7b72ec28489671a51201a8623dd599 (diff)
downloademacs-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.c17
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;
45static mps_addr_t exactRoots[exactRootsCOUNT]; 46static mps_addr_t exactRoots[exactRootsCOUNT];
46static mps_addr_t ambigRoots[ambigRootsCOUNT]; 47static mps_addr_t ambigRoots[ambigRootsCOUNT];
47 48
48mps_arena_t arena;
49mps_fmt_t format;
50mps_chain_t chain;
51mps_root_t exactRoot, ambigRoot;
52unsigned long objs = 0;
53
54
55/* report - report statistics from any terminated GCs */ 49/* report - report statistics from any terminated GCs */
56 50
57static void report(mps_arena_t arena) 51static void report(mps_arena_t arena)
@@ -82,6 +76,13 @@ static void report(mps_arena_t arena)
82} 76}
83 77
84 78
79mps_arena_t arena;
80mps_fmt_t format;
81mps_chain_t chain;
82mps_root_t exactRoot, ambigRoot;
83unsigned long objs = 0;
84
85
85/* make -- create one new object */ 86/* make -- create one new object */
86 87
87static mps_addr_t make(mps_ap_t ap) 88static 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