diff options
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/global.c | 3 |
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 */ |