mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
Minor tweaks to allow amcssth test to build under lii3gc at least.
Copied from Perforce Change: 180963 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
88ad39840e
commit
a622cdfc07
1 changed files with 10 additions and 7 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#define _POSIX_C_SOURCE 199309L
|
||||
|
||||
#include "fmtdy.h"
|
||||
#include "fmtdytst.h"
|
||||
#include "testlib.h"
|
||||
#include "mpscamc.h"
|
||||
#include "mpsavm.h"
|
||||
|
|
@ -45,13 +46,6 @@ static mps_pool_t pool;
|
|||
static mps_addr_t exactRoots[exactRootsCOUNT];
|
||||
static mps_addr_t ambigRoots[ambigRootsCOUNT];
|
||||
|
||||
mps_arena_t arena;
|
||||
mps_fmt_t format;
|
||||
mps_chain_t chain;
|
||||
mps_root_t exactRoot, ambigRoot;
|
||||
unsigned long objs = 0;
|
||||
|
||||
|
||||
/* report - report statistics from any terminated GCs */
|
||||
|
||||
static void report(mps_arena_t arena)
|
||||
|
|
@ -82,6 +76,13 @@ static void report(mps_arena_t arena)
|
|||
}
|
||||
|
||||
|
||||
mps_arena_t arena;
|
||||
mps_fmt_t format;
|
||||
mps_chain_t chain;
|
||||
mps_root_t exactRoot, ambigRoot;
|
||||
unsigned long objs = 0;
|
||||
|
||||
|
||||
/* make -- create one new object */
|
||||
|
||||
static mps_addr_t make(mps_ap_t ap)
|
||||
|
|
@ -258,6 +259,8 @@ static void *test(void *arg, size_t s)
|
|||
|
||||
churn(ap);
|
||||
|
||||
r = (size_t)rnd();
|
||||
|
||||
if (r % initTestFREQ == 0)
|
||||
*(int*)busy_init = -1; /* check that the buffer is still there */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue