From bf80a3a11def6ba68d8f248b389ba84e4e32ced3 Mon Sep 17 00:00:00 2001 From: Richard Kistruck Date: Thu, 20 Aug 2009 17:44:16 +0100 Subject: Mps br/padding: new pooltraceendmethod: do end-of-trace work Tracer calls PoolTraceEnd() when the trace is TraceFINISHED. AbstractPoolClass uses PoolTrivTraceEnd -- a NOOP. [mpm.h, mpmst.h, mpmtypes.h, pool.c, poolabs.c] AMC overrides with AMCTraceEnd, to emit diagnostic on how well the trace went! [poolamc.c] Copied from Perforce Change: 168478 ServerID: perforce.ravenbrook.com --- mps/code/mpmtypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mps/code/mpmtypes.h') diff --git a/mps/code/mpmtypes.h b/mps/code/mpmtypes.h index bd232110349..fd27f8c2a80 100644 --- a/mps/code/mpmtypes.h +++ b/mps/code/mpmtypes.h @@ -198,6 +198,7 @@ typedef Res (*PoolFixMethod)(Pool pool, ScanState ss, Seg seg, typedef Res (*PoolFixEmergencyMethod)(Pool pool, ScanState ss, Seg seg, Ref *refIO); typedef void (*PoolReclaimMethod)(Pool pool, Trace trace, Seg seg); +typedef void (*PoolTraceEndMethod)(Pool pool, Trace trace); typedef void (*PoolRampBeginMethod)(Pool pool, Buffer buf, Bool collectAll); typedef void (*PoolRampEndMethod)(Pool pool, Buffer buf); typedef Res (*PoolFramePushMethod)(AllocFrame *frameReturn, -- cgit v1.2.1