1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-22 13:40:44 -08:00

Count the number of calls to make, for help with setting watchpoints.

Copied from Perforce
 Change: 187491
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-11-07 14:52:26 +00:00
parent 9b452d00cc
commit 0b1bec15f8

View file

@ -94,10 +94,12 @@ static void report(mps_arena_t arena)
static mps_addr_t make(size_t rootsCount)
{
static unsigned long calls = 0;
size_t length = rnd() % (scale * avLEN);
size_t size = (length+2) * sizeof(mps_word_t);
mps_addr_t p;
mps_res_t res;
++ calls;
do {
MPS_RESERVE_BLOCK(res, p, ap, size);