aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/amcsshe.c
diff options
context:
space:
mode:
authorRichard Brooksby2001-12-05 15:48:24 +0000
committerRichard Brooksby2001-12-05 15:48:24 +0000
commit492dd3c684e53bd42b28371bdaaa99ad67ebd835 (patch)
tree59a2df0f685b93b44fbc03847b76782275308aaf /mps/code/amcsshe.c
parent25c78993edd7b4a607eba951b6ab2a9a51c55b62 (diff)
downloademacs-492dd3c684e53bd42b28371bdaaa99ad67ebd835.tar.gz
emacs-492dd3c684e53bd42b28371bdaaa99ad67ebd835.zip
Merging changes from union to masters. this incorporates pekka's updates: tuning and a type in amcsshe.c and some adding some missing checks in arenavm.c. it also brings our cope of their hopenames up to date.
Copied from Perforce Change: 24815 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/amcsshe.c')
-rw-r--r--mps/code/amcsshe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mps/code/amcsshe.c b/mps/code/amcsshe.c
index 5c5c5edff0f..fa56379db1d 100644
--- a/mps/code/amcsshe.c
+++ b/mps/code/amcsshe.c
@@ -1,6 +1,6 @@
1/* impl.c.amcsshe: POOL CLASS AMC STRESS TEST WITH HEADER 1/* impl.c.amcsshe: POOL CLASS AMC STRESS TEST WITH HEADER
2 * 2 *
3 * $HopeName: MMsrc!amcsshe.c(trunk.4) $ 3 * $HopeName: MMsrc!amcsshe.c(trunk.6) $
4 * Copyright (C) 2001 Harlequin Limited. All rights reserved. 4 * Copyright (C) 2001 Harlequin Limited. All rights reserved.
5 */ 5 */
6 6
@@ -18,7 +18,7 @@
18 18
19 19
20/* These values have been tuned to cause one top-generation collection. */ 20/* These values have been tuned to cause one top-generation collection. */
21#define testArenaSIZE ((size_t)1000*1024) 21#define testArenaSIZE ((size_t)1400*1024)
22#define avLEN 3 22#define avLEN 3
23#define exactRootsCOUNT 200 23#define exactRootsCOUNT 200
24#define ambigRootsCOUNT 50 24#define ambigRootsCOUNT 50
@@ -31,7 +31,7 @@
31/* testChain -- generation parameters for the test */ 31/* testChain -- generation parameters for the test */
32 32
33static mps_gen_param_s testChain[genCOUNT] = { 33static mps_gen_param_s testChain[genCOUNT] = {
34 { 150, 0.85 }, { 170, 0.45 } }; 34 { 210, 0.85 }, { 248, 0.45 } };
35 35
36 36
37/* objNULL needs to be odd so that it's ignored in exactRoots. */ 37/* objNULL needs to be odd so that it's ignored in exactRoots. */
@@ -252,8 +252,8 @@ static void *test(void *arg, size_t s)
252 } 252 }
253 /* fill bogusRoots with variations of a real pointer */ 253 /* fill bogusRoots with variations of a real pointer */
254 r = rnd() % exactRootsCOUNT; 254 r = rnd() % exactRootsCOUNT;
255 if (exactRoots[i] != objNULL) { 255 if (exactRoots[r] != objNULL) {
256 char *p = (char*)exactRoots[i]; 256 char *p = (char*)exactRoots[r];
257 257
258 for(i = 0; i < bogusRootsCOUNT; ++i, ++p) 258 for(i = 0; i < bogusRootsCOUNT; ++i, ++p)
259 bogusRoots[i] = (mps_addr_t)p; 259 bogusRoots[i] = (mps_addr_t)p;