aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Kistruck2008-12-16 16:20:16 +0000
committerRichard Kistruck2008-12-16 16:20:16 +0000
commitcd8f0ed2ad9c3580594d260a7e7aa64d11fa47cf (patch)
tree0cf37f94343f980c4c01b053358c8b975df32349 /mps/code
parentaac003454d20e71b30b04b7e24273552d689430b (diff)
downloademacs-cd8f0ed2ad9c3580594d260a7e7aa64d11fa47cf.tar.gz
emacs-cd8f0ed2ad9c3580594d260a7e7aa64d11fa47cf.zip
Mps br/timing global.c: new diag "globalspreparetodestroy", reports if message queue not empty.
Copied from Perforce Change: 166952 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/global.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mps/code/global.c b/mps/code/global.c
index bf51bbf5cd6..7051225c12b 100644
--- a/mps/code/global.c
+++ b/mps/code/global.c
@@ -422,6 +422,9 @@ void GlobalsPrepareToDestroy(Globals arenaGlobals)
422 /* is done before destroying the finalization pool as otherwise */ 422 /* is done before destroying the finalization pool as otherwise */
423 /* the message queue would have dangling pointers to messages */ 423 /* the message queue would have dangling pointers to messages */
424 /* whose memory has been unmapped. */ 424 /* whose memory has been unmapped. */
425 if(MessagePoll(arena)) {
426 DIAG_SINGLEF(( "GlobalsPrepareToDestroy", "Message queue not empty", NULL ));
427 }
425 MessageEmpty(arena); 428 MessageEmpty(arena);
426 429
427 /* throw away the BT used by messages */ 430 /* throw away the BT used by messages */